From 68b5859e3b755798a3db01c4a1a96841c0a840b1 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 30 Sep 2015 18:34:47 -0400 Subject: [PATCH] changed code to package and ship to agplv3 only --- civicrm-core.git/post-update | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/civicrm-core.git/post-update b/civicrm-core.git/post-update index 8411e95..7766cfd 100755 --- a/civicrm-core.git/post-update +++ b/civicrm-core.git/post-update @@ -4,16 +4,20 @@ unset GIT_DIR SELF=civicrm-core.git REPO_DIR=$HOME/repositories CHECKOUT_DIR=$HOME/local/checkouts/deploy-hooks -TARGET_DIR=/var/www/html/ +TARGET_DIR=/home/vcshookuser/www case $1 in refs/heads/master) TARGET_HOST=crm.fsf.org branch=master ;; - refs/heads/stable) + refs/heads/crmdevserver0) + TARGET_HOST=crmdevserver0.fsf.org + branch=master + ;; + refs/heads/dev) TARGET_HOST=crm-dev.fsf.org - branch=stable + branch=dev ;; *) echo "No action for this branch!" @@ -34,13 +38,15 @@ fi if [ -n TARGET_HOST ]; then echo "Deploying branch '$branch' to host '$TARGET_HOST'" - - echo "Uploading files to $TARGET_HOST web root..." - rsync -avrSPX --exclude='.git/' --delete $CHECKOUT_DIR/ - vcshookuser@$TARGET_HOST:$TARGET_DIR - - echo "Fixing permissions on webserver..." - ssh vcshookuser@$TARGET_HOST 'sudo /usr/loca/bin/fixperms.sh' + echo "ABORTING, stub. For now we just upload AGPL code." + git archive -o /tmp/civicrm.tar.gz + rsync -avrSPX /tmp/civicrm.tar.gz vcshookuser@agpl.fsf.org:/var/www/agpl.fsf.org/crm.fsf.org/CURRENT/ +# echo "Uploading files to $TARGET_HOST web root..." +# rsync -avrSPX --exclude='.git/' --delete $CHECKOUT_DIR/ +# vcshookuser@$TARGET_HOST:$TARGET_DIR + +# echo "Fixing permissions on webserver..." +# ssh vcshookuser@$TARGET_HOST 'sudo /usr/loca/bin/fixperms.sh' fi exec git update-server-info -- 2.25.1