diff --git a/deploy.sh b/deploy.sh index f07dfeb2..fb92a570 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,12 +4,14 @@ set -ex ulimit -u 512 DIR=$(mktemp --directory) +trap "rm -rf $DIR" EXIT + # set USE_LDAP to true to generate member list using LDAP database export USE_LDAP=true pushd $DIR -git clone https://git.csclub.uwaterloo.ca/www/www-new.git --depth=1 +git clone file:///srv/git/www/www-new.git --depth=1 cd www-new @@ -26,5 +28,3 @@ rm -rf /srv/www-csc/* mv out/* /srv/www-csc/ popd - -rm -rf $DIR