install-aws-server: Cut out use of /root/zulip .

Our previous dependencies on the `/root/zulip` path should all be
long gone at this point.  Use a fresh temporary directory instead;
that's cleaner.
This commit is contained in:
Greg Price 2017-08-09 17:28:36 -07:00 committed by Tim Abbott
parent 835c2ca1ce
commit 73cb361896
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ sed -i 's/localhost$/localhost $hostname/' /etc/hosts
apt-get update apt-get update
apt-get -y upgrade apt-get -y upgrade
cd /root cd "$(mktemp -d)"
if ! [ -e "zulip" ]; then if ! [ -e "zulip" ]; then
# need to install git to clone the repo # need to install git to clone the repo
apt-get install -y git crudini apt-get install -y git crudini
@ -102,7 +102,8 @@ cd zulip
git fetch git fetch
git checkout origin/$branch git checkout origin/$branch
# The main Zulip production install script can take things from here! # The main Zulip production install script can take things from here!
env VIRTUALENV_NEEDED=$VIRTUALENV_NEEDED PUPPET_CLASSES="$type" /root/zulip/scripts/setup/install env VIRTUALENV_NEEDED=$VIRTUALENV_NEEDED PUPPET_CLASSES="$type" \
./scripts/setup/install
EOF EOF
set +x set +x