upload 693 Bytes
Newer Older
Steve Johnson's avatar
Steve Johnson committed
1 2 3 4
#! /bin/sh

if [ ! -f ../mse/tools/upload_config ]; then
    echo " - Please clone mse repository into sibling directory of $PWD"
5
    echo " - Then edit mse/tools/upload_config for your site settings"
Steve Johnson's avatar
Steve Johnson committed
6 7 8 9 10 11 12 13 14
    exit 0
fi

. ../mse/tools/upload_config $1 mse/php

echo " "
echo "  * Uploading ${PWD##*/} repository contents to: $REPO_HOST:$REPO_DEST"
echo " "

15 16 17 18
chmod a+w .
chmod a+w ./auth

rsync --recursive --perms \
Steve Johnson's avatar
Steve Johnson committed
19 20 21
    --exclude '*~*' \
    --exclude '*.log' \
    --exclude '*_auth.json' \
22 23 24
    --exclude 'auth/userapps' \
    --exclude 'auth/cookies' \
    --exclude 'auth/log' \
Steve Johnson's avatar
Steve Johnson committed
25 26
    --exclude 'upload' \
    --exclude 'MSE_AUTHORIZED*' \
27
    * $REPO_USERHOST$REPO_SEP$REPO_DEST
Steve Johnson's avatar
Steve Johnson committed
28 29

check_rcode $?