From d225827eb842bbffa597a28d553d6394e7f5e8e0 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 30 Sep 2015 18:39:28 -0400 Subject: [PATCH] fixed flow to update apgl.fsf.org --- trustcommerce.git/post-update | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/trustcommerce.git/post-update b/trustcommerce.git/post-update index 3f88f43..c26a286 100755 --- a/trustcommerce.git/post-update +++ b/trustcommerce.git/post-update @@ -78,6 +78,16 @@ fi # Build the docs for this project phpdoc -f trustcommerce.php -t $doc_path --template='responsive' +echo -n $(date "$date_fmt"); echo " - Packing for export to package host" +rm -f $local_checkout_base/*tar.gz +rm -f $local_checkout_base/*zip +cd $local_checkout_base +tar czv --exclude-vcs -f $package_name.tar.gz $branch +zip -r $package_name $branch -x "*/.git/*" "*/.gitignore" + +echo -n $(date "$date_fmt"); echo " - Pushing to packaging server" +scp $package_name.zip $package_name.tar.gz $remote_user@$package_host:$package_path/ + # Stop here if not updating a host if [ -z $target_host ]; then exit @@ -90,14 +100,6 @@ rsync -arzSPX --exclude=.git/ --delete $local_checkout/* $remote_user@$target_ho echo -n $(date "$date_fmt"); echo " - Updating target path permissions" ssh $remote_user@$target_host -t sudo $deploy_script -echo -n $(date "$date_fmt"); echo " - Packing for export to package host" -rm -f $local_checkout_base/*tar.gz -rm -f $local_checkout_base/*zip -cd $local_checkout_base -tar czv --exclude-vcs -f $package_name.tar.gz $branch -zip -r $package_name $branch -x "*/.git/*" "*/.gitignore" -echo -n $(date "$date_fmt"); echo " - Pushing to packaging server" -scp $package_name.zip $package_name.tar.gz $remote_user@$package_host:$package_path/ -- 2.25.1