Don't use root for inadyn daemon
This commit is contained in:
parent
2fd7ee4067
commit
2f5e8bdca5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue