From 2f5e8bdca59170e1701757bb08192c0b692f3dda Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 19 Jan 2015 20:19:16 +0000 Subject: [PATCH] Don't use root for inadyn daemon --- src/freedombone | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index 2909cd99..28426845 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8351,7 +8351,7 @@ function install_dynamicdns { # create a configuration file echo 'period 300' > /etc/inadyn.conf echo 'startup-delay 60' >> /etc/inadyn.conf - echo 'cache-dir /etc/inadyn' >> /etc/inadyn.conf + echo 'cache-dir /run/inadyn' >> /etc/inadyn.conf chmod 600 /etc/inadyn.conf if [ ! -d /etc/inadyn ]; then @@ -8390,8 +8390,8 @@ function install_dynamicdns { echo '' >> /etc/init.d/inadyn echo '# Set defaults values if no DEFAULT exist' >> /etc/init.d/inadyn echo 'RUN_DAEMON="yes"' >> /etc/init.d/inadyn - echo 'USER=root' >> /etc/init.d/inadyn - echo 'GROUP=root' >> /etc/init.d/inadyn + echo 'USER=debian-inadyn' >> /etc/init.d/inadyn + echo 'GROUP=debian-inadyn' >> /etc/init.d/inadyn echo '' >> /etc/init.d/inadyn echo 'DAEMON_ARGS="--pidfile $PIDFILE \' >> /etc/init.d/inadyn echo ' --config $CONFIG \' >> /etc/init.d/inadyn