From 0debc3f7eab73620f6fd1c92daad1d010f3766ce Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 9 Aug 2017 17:30:47 -0700 Subject: [PATCH] install: Update a comment for our post-/root/zulip world. We may not necessarily be running out of /root/zulip or any particular path, but the point this comment was really trying to make in the first place stands. Make it more clearly and still-accurately. --- scripts/setup/postgres-init-db | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup/postgres-init-db b/scripts/setup/postgres-init-db index 409f604529..a874ac6ec2 100755 --- a/scripts/setup/postgres-init-db +++ b/scripts/setup/postgres-init-db @@ -30,7 +30,8 @@ if [ -e "/var/run/supervisor.sock" ]; then fi # Drop any open connections to any old database. Hackishly call using -# source because postgres user can't read /root/zulip/scripts/setup. +# `source`, because postgres user may not be able to read this directory +# if unpacked by root. source "$(dirname "$0")/terminate-psql-sessions" postgres zulip zulip_base (