diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | debian/phenny.init | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d6703c9..1c4f955 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +phenny (1:2~git-2016-05-10~cd524df-2) unstable; urgency=medium + + * phenny.init: Fix init script for stretch + + -- Alexander Sulfrian <alex@spline.inf.fu-berlin.de> Mon, 29 Oct 2018 16:49:40 +0100 + phenny (1:2~git-2016-05-10~cd524df-1) unstable; urgency=low * Fix indentation and trailing whitespaces diff --git a/debian/phenny.init b/debian/phenny.init index 5dec77e..e0a87fe 100755 --- a/debian/phenny.init +++ b/debian/phenny.init @@ -48,11 +48,17 @@ chown "$PHENNY_USER:$PHENNY_GROUP" "$PIDDIR" case "$1" in start) + if [ -n "$PHENNY_GROUP" ]; then + CHUID="$PHENNY_USER:$PHENNY_GROUP" + else + CHUID="$PHENNY_USER" + fi + log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start \ --pidfile "$PIDDIR/$NAME.pid" \ --make-pidfile \ - --chuid "$PHENNY_USER:$PHENNY_GROUP" \ + --chuid "$CHUID" \ --background \ --exec $DAEMON -- --config "$PHENNY_CONFIG" $PHENNY_OPTS log_end_msg $? |