Don't use root for inadyn daemon

This commit is contained in:
Bob Mottram 2015-01-19 20:19:16 +00:00
parent 2fd7ee4067
commit 2f5e8bdca5
1 changed files with 3 additions and 3 deletions

View File

@ -8351,7 +8351,7 @@ function install_dynamicdns {
# create a configuration file # create a configuration file
echo 'period 300' > /etc/inadyn.conf echo 'period 300' > /etc/inadyn.conf
echo 'startup-delay 60' >> /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 chmod 600 /etc/inadyn.conf
if [ ! -d /etc/inadyn ]; then if [ ! -d /etc/inadyn ]; then
@ -8390,8 +8390,8 @@ function install_dynamicdns {
echo '' >> /etc/init.d/inadyn echo '' >> /etc/init.d/inadyn
echo '# Set defaults values if no DEFAULT exist' >> /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 'RUN_DAEMON="yes"' >> /etc/init.d/inadyn
echo 'USER=root' >> /etc/init.d/inadyn echo 'USER=debian-inadyn' >> /etc/init.d/inadyn
echo 'GROUP=root' >> /etc/init.d/inadyn echo 'GROUP=debian-inadyn' >> /etc/init.d/inadyn
echo '' >> /etc/init.d/inadyn echo '' >> /etc/init.d/inadyn
echo 'DAEMON_ARGS="--pidfile $PIDFILE \' >> /etc/init.d/inadyn echo 'DAEMON_ARGS="--pidfile $PIDFILE \' >> /etc/init.d/inadyn
echo ' --config $CONFIG \' >> /etc/init.d/inadyn echo ' --config $CONFIG \' >> /etc/init.d/inadyn