Don't chown supervisor socket if it doesn't exist.

This commit is contained in:
Tim Abbott
2016-04-26 15:20:06 -07:00
parent 6a3c775842
commit dc772518e7
2 changed files with 7 additions and 2 deletions

View File

@@ -3,7 +3,9 @@ set -e
set -x
# Shut down all services to ensure a quiescent state.
supervisorctl stop all
if [ -e "/var/run/supervisor.sock" ]; then
supervisorctl stop all
fi
# Drop any open connections to any old database. Hackishly call using
# source because postgres user can't read /root/zulip/scripts/setup.