From 7d38a48f68af0d2e826cc52d443b67c1ed939113 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Wed, 22 Mar 2017 14:11:42 +0800 Subject: [PATCH] Create directories with 077X Create directories with 077X. If we run 2 SOGo instances by following official tutorial[1], the second SOGo instance cannot start due to no permission to write pid file or log file. [1] https://sogo.nu/nc/support/faq/article/dedicated-separate-sogo-instance-for-activesync.html --- packaging/debian/sogo.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/debian/sogo.init b/packaging/debian/sogo.init index c296ba8b7..13a00952b 100644 --- a/packaging/debian/sogo.init +++ b/packaging/debian/sogo.init @@ -63,9 +63,9 @@ case "$1" in log_daemon_msg "Starting $DESC" "$NAME" # Enforce directory existence and permissions - install -o $USER -g $USER -m 755 -d /var/run/$NAME - install -o $USER -g $USER -m 750 -d /var/spool/$NAME - install -o $USER -g $USER -m 750 -d /var/log/$NAME + install -o $USER -g $USER -m 775 -d /var/run/$NAME + install -o $USER -g $USER -m 770 -d /var/spool/$NAME + install -o $USER -g $USER -m 770 -d /var/log/$NAME if ! start-stop-daemon -c $USER --quiet --start --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS then