mirror of https://github.com/zulip/zulip.git
enterprise: Make /root/zulip be a symlink to ~zulip/deployments/next
(imported from commit 2a0e7f99fe4517e45ad2794b7fa464df08d40db1)
This commit is contained in:
parent
031dfbcc46
commit
67ed16a12e
|
@ -1,11 +1,6 @@
|
|||
#!/bin/bash -xe
|
||||
|
||||
# Assumes we've already been untarred
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: install <ZULIP_TARBALL>"
|
||||
exit 1
|
||||
fi
|
||||
tarball="$1"
|
||||
|
||||
# First, install any updates from the apt repo that may be needed
|
||||
wget -O /root/enterprise.asc https://apt.zulip.com/enterprise.asc
|
||||
|
@ -40,8 +35,13 @@ ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py
|
|||
|
||||
/root/zulip/scripts/setup/postgres-init-db
|
||||
|
||||
deploy_path=$($(dirname $(dirname $0))/unpack-zulip "$tarball")
|
||||
deploy_path=$(/root/zulip/zulip_tools.py make_deploy_path)
|
||||
mv /root/zulip "$deploy_path"
|
||||
ln -nsf /home/zulip/deployments/next /root/zulip
|
||||
ln -nsf "$deploy_path" /home/zulip/deployments/next
|
||||
ln -nsf "$deploy_path" /home/zulip/deployments/current
|
||||
ln -nsf /etc/zulip/settings.py "$deploy_path"/zproject/local_settings.py
|
||||
cp -rT "$deploy_path"/prod-static/serve /home/zulip/prod-static
|
||||
chown -R zulip:zulip /home/zulip /var/log/zulip /etc/zulip/settings.py
|
||||
chown zulip:zulip /var/run/supervisor.sock
|
||||
|
||||
|
|
Loading…
Reference in New Issue