From: Lisa Marie Maginnis Date: Tue, 5 Jul 2016 17:33:07 +0000 (-0400) Subject: updated ryf hook X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=45e71b5278ab6c44f67504c2e705bd76c88f8392;p=deploy-hooks.git updated ryf hook --- diff --git a/ryf.git/post-update.ryf.fsf.org b/ryf.git/post-update.ryf.fsf.org index 344964d..338f315 100755 --- a/ryf.git/post-update.ryf.fsf.org +++ b/ryf.git/post-update.ryf.fsf.org @@ -11,16 +11,18 @@ unset GIT_DIR SELF=ryf.git REPO_DIR=$HOME/repositories CHECKOUT_DIR=$HOME/local/checkouts/$SELF -TARGET_DIR=/var/www/ryf.fsf.org +TARGET_DIR=/var/www TARGET_HOST=ryf.fsf.org case $1 in refs/heads/live) branch=live + TARGET_DIR=$TARGET_DIR/ryf.fsf.org ;; refs/heads/dev) branch=dev + TARGET_DIR=$TARGET_DIR/ryf-dev.fsf.org ;; *) echo "No action for this branch!" @@ -40,7 +42,7 @@ else fi if [ -n $TARGET_HOST ]; then - echo Deploying to: $branch + echo Deploying to: $TARGET_DIR rsync -avrSPX --delete-after $CHECKOUT_DIR/* root@$TARGET_HOST:$TARGET_DIR/ fi