mirror of https://github.com/zulip/zulip.git
install: Make sure we own everything under /var/log/zulip
supervisord may start up during the install process and do a bunch of incorrect stuff, with the net effect of creating files in there owned by root. (imported from commit 28379af9680bf9d3c72da196f329abdf8c82c6be)
This commit is contained in:
parent
a6af391125
commit
0ec8a7a2f1
|
@ -42,7 +42,7 @@ ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py
|
||||||
|
|
||||||
deploy_path=$($(dirname $(dirname $0))/unpack-zulip "$tarball")
|
deploy_path=$($(dirname $(dirname $0))/unpack-zulip "$tarball")
|
||||||
ln -nsf "$deploy_path" /home/zulip/deployments/current
|
ln -nsf "$deploy_path" /home/zulip/deployments/current
|
||||||
chown -R zulip:zulip /home/zulip/deployments
|
chown -R zulip:zulip /home/zulip/deployments /var/log/zulip
|
||||||
|
|
||||||
cd /home/zulip/deployments/current
|
cd /home/zulip/deployments/current
|
||||||
su zulip -c /home/zulip/deployments/current/scripts/setup/create-database
|
su zulip -c /home/zulip/deployments/current/scripts/setup/create-database
|
||||||
|
|
Loading…
Reference in New Issue