Fixing inadyn install
This commit is contained in:
parent
a7e41c20f8
commit
d9ede61dc1
|
@ -8171,10 +8171,13 @@ function install_dynamicdns {
|
||||||
# doesn't support https, which clould result in passwords
|
# doesn't support https, which clould result in passwords
|
||||||
# being leaked
|
# being leaked
|
||||||
|
|
||||||
cd $INSTALL_DIR
|
|
||||||
apt-get -y install build-essential curl libgnutls28-dev automake1.11
|
apt-get -y install build-essential curl libgnutls28-dev automake1.11
|
||||||
git clone https://github.com/bashrc/inadyn
|
git clone https://github.com/bashrc/inadyn $INSTALL_DIR/inadyn
|
||||||
cd inadyn
|
if [ ! -d $INSTALL_DIR/inadyn ]; then
|
||||||
|
echo 'inadyn repo not cloned'
|
||||||
|
exit 6785
|
||||||
|
fi
|
||||||
|
cd $INSTALL_DIR/inadyn
|
||||||
./configure
|
./configure
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 74890
|
exit 74890
|
||||||
|
@ -8188,6 +8191,9 @@ function install_dynamicdns {
|
||||||
exit 3785
|
exit 3785
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# create an unprivileged user
|
||||||
|
#useradd -r -s /bin/false debian-inadyn
|
||||||
|
|
||||||
# create a configuration file
|
# create a configuration file
|
||||||
echo 'background' > /etc/inadyn.conf
|
echo 'background' > /etc/inadyn.conf
|
||||||
echo 'verbose 1' >> /etc/inadyn.conf
|
echo 'verbose 1' >> /etc/inadyn.conf
|
||||||
|
@ -8232,8 +8238,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=debian-inadyn' >> /etc/init.d/inadyn
|
echo 'USER=root' >> /etc/init.d/inadyn
|
||||||
echo 'GROUP=debian-inadyn' >> /etc/init.d/inadyn
|
echo 'GROUP=root' >> /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
|
||||||
|
|
Loading…
Reference in New Issue