mirror of https://github.com/zulip/zulip.git
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:
parent
835c2ca1ce
commit
73cb361896
|
@ -92,7 +92,7 @@ sed -i 's/localhost$/localhost $hostname/' /etc/hosts
|
|||
apt-get update
|
||||
apt-get -y upgrade
|
||||
|
||||
cd /root
|
||||
cd "$(mktemp -d)"
|
||||
if ! [ -e "zulip" ]; then
|
||||
# need to install git to clone the repo
|
||||
apt-get install -y git crudini
|
||||
|
@ -102,7 +102,8 @@ cd zulip
|
|||
git fetch
|
||||
git checkout origin/$branch
|
||||
# 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
|
||||
|
||||
set +x
|
||||
|
|
Loading…
Reference in New Issue