|
@@ -1657,7 +1657,7 @@ image_install_inadyn() {
|
1657
|
1657
|
mkdir -p "$rootdir/root/build"
|
1658
|
1658
|
fi
|
1659
|
1659
|
chroot "$rootdir" apt-get -yq install build-essential curl libgnutls28-dev automake1.11 libconfuse-dev
|
1660
|
|
- chroot "$rootdir" apt-get -yq install gnutls-dev libconfuse-dev
|
|
1660
|
+ chroot "$rootdir" apt-get -yq install gnutls-dev libconfuse-dev pkg-config
|
1661
|
1661
|
|
1662
|
1662
|
if [ -d /repos/inadyn ]; then
|
1663
|
1663
|
mkdir "$rootdir/root/build/inadyn"
|
|
@@ -1696,13 +1696,17 @@ image_install_inadyn() {
|
1696
|
1696
|
chmod 600 "$rootdir/etc/inadyn.conf"
|
1697
|
1697
|
|
1698
|
1698
|
{ echo '[Unit]';
|
1699
|
|
- echo 'Description=inadyn (DynDNS updater)';
|
1700
|
|
- echo 'After=network.target';
|
|
1699
|
+ echo 'Description=Internet Dynamic DNS Client';
|
|
1700
|
+ echo 'Documentation=man:inadyn';
|
|
1701
|
+ echo 'Documentation=man:inadyn.conf';
|
|
1702
|
+ echo 'Documentation=https://github.com/troglobit/inadyn';
|
|
1703
|
+ echo 'ConditionPathExists=/etc/inadyn.conf';
|
|
1704
|
+ echo 'After=network-online.target';
|
|
1705
|
+ echo 'Requires=network-online.target';
|
1701
|
1706
|
echo '';
|
1702
|
1707
|
echo '[Service]';
|
1703
|
|
- echo 'ExecStart=/usr/sbin/inadyn --config /etc/inadyn.conf';
|
1704
|
|
- echo 'Restart=always';
|
1705
|
|
- echo 'Type=forking';
|
|
1708
|
+ echo 'Type=simple';
|
|
1709
|
+ echo "ExecStart=/usr/sbin/inadyn -n -s --config ${INADYN_CONFIG_FILE}";
|
1706
|
1710
|
echo '';
|
1707
|
1711
|
echo '[Install]';
|
1708
|
1712
|
echo 'WantedBy=multi-user.target'; } > "$rootdir/etc/systemd/system/inadyn.service"
|