Fixing inadyn install

This commit is contained in:
Bob Motram 2015-02-08 15:08:22 +00:00
parent a7e41c20f8
commit d9ede61dc1
1 changed files with 11 additions and 5 deletions

View File

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