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:
Tim Abbott 2013-11-12 20:52:26 -05:00
parent e1a8f511fe
commit 45f21cbb14
1 changed files with 3 additions and 1 deletions

View File

@ -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