From: Lisa Marie Maginnis Date: Wed, 30 Sep 2015 22:39:28 +0000 (-0400) Subject: fixed flow to update apgl.fsf.org X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d225827eb842bbffa597a28d553d6394e7f5e8e0;p=deploy-hooks.git fixed flow to update apgl.fsf.org --- 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/