From 63772009a1ef90b4f1173142e4d3b1f5c7c6b332 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Sat, 3 Nov 2012 18:18:45 +0100 Subject: Add a default value for $USER in initscript Relying on the external shell environment can lead to issue hard to understand. We explicitly set USER to root by default, and let admins override it in the default file. --- files/inoticoming.init | 1 + 1 file changed, 1 insertion(+) diff --git a/files/inoticoming.init b/files/inoticoming.init index e66bb94..bc91568 100755 --- a/files/inoticoming.init +++ b/files/inoticoming.init @@ -21,6 +21,7 @@ NAME=reprepro DAEMON=/usr/bin/inoticoming PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME +USER=root # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 -- cgit v1.2.3