From e8d56b8af8e7d3466476956c790be0111efcca5f Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 8 Jul 2015 15:45:55 -0400 Subject: [PATCH] Cleaned up --- trustcommerce.git/post-update | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/trustcommerce.git/post-update b/trustcommerce.git/post-update index 1a749a8..c08b3b0 100755 --- a/trustcommerce.git/post-update +++ b/trustcommerce.git/post-update @@ -13,11 +13,12 @@ package_host=agpl.fsf.org package_name=trustcommerce repository=/home/git/repositories/trustcommerce.git -target_path=/var/www/civicrm_custom/extensions/org.fsf.payment.trustcommerce remote_user=vcshookuser +target_path=~$remote_user/stage/org.fsf.payment.trustcommerce/ -echo -n $(date "$date_fmt"); echo " - Starting post-update hook..." +deploy_script=/usr/local/bin/deploy_tc.sh +echo -n $(date "$date_fmt"); echo " - Starting post-update hook..." # Unset GIT_DIR to allow for calls to git clone/pull git update-server-info @@ -69,7 +70,7 @@ echo -n $(date "$date_fmt"); echo " - Pushing files to target host" rsync -arzSPX --exclude=.git/ --delete $local_checkout/* $remote_user@$target_host:$target_path/ #2>/dev/null echo -n $(date "$date_fmt"); echo " - Updating target path permissions" -ssh $remote_user@$target_host "find $remote_path -type f -print0 | xargs -0 chmod 644 && find $remote_path -type d -print0 | xargs -0 chmod 755" # 2>/dev/null +ssh $remote_user@$target_host sudo $deploy_script echo -n $(date "$date_fmt"); echo " - Packing for export to package host" rm -f $local_checkout_base/*tar.gz -- 2.25.1