mirror of https://github.com/zulip/zulip.git
Setup the database after the Zulip user is fully setup.
Otherwise we may run into permissions issues. (imported from commit a8013c84796d16146336c2809dcd8cd935b43a7b)
This commit is contained in:
parent
e1a8f511fe
commit
45f21cbb14
|
@ -39,12 +39,14 @@ ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py
|
|||
/root/zulip/scripts/setup/configure-rabbitmq
|
||||
|
||||
/root/zulip/scripts/setup/postgres-init-db
|
||||
/root/zulip/scripts/setup/create-database
|
||||
|
||||
deploy_path=$($(dirname $(dirname $0))/unpack-zulip "$tarball")
|
||||
ln -nsf "$deploy_path" /home/zulip/deployments/current
|
||||
chown -R zulip:zulip /home/zulip/deployments
|
||||
|
||||
cd /home/zulip/deployments/current
|
||||
su zulip -c /home/zulip/deployments/current/scripts/setup/create-database
|
||||
|
||||
chown zulip:zulip /var/run/supervisor.sock
|
||||
supervisorctl restart all
|
||||
|
||||
|
|
Loading…
Reference in New Issue