From d4694f1c41c8770f6a6dd8ef18dd200a777e4bdd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 29 Oct 2018 16:46:49 +0100 Subject: phenny.init: Fix init script for stretch --chuid with a colon but without a group name is a fatal error for dpkg >= 1.18.3 [1]. dpkg changed from 1.17.27 to 1.18.25 with the update to stretch. 1: https://github.com/endlessm/dpkg/commit/3db7a6eb4fd16b4cea475009bd80be3a41ada014 --- debian/changelog | 6 ++++++ debian/phenny.init | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 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 $? -- cgit v1.2.3-1-g7c22