dynDNS: pdate cron execution interval (#754)

This commit is contained in:
TomTurnschuh 2018-12-27 15:14:06 +01:00 committed by nacho
parent 2e9440d9ce
commit 4307b14f27
2 changed files with 7 additions and 1 deletions

View File

@ -105,7 +105,7 @@ configure()
# Adds file to cron to run script for DNS record updates and change permissions
touch $CRONFILE
echo "10 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN_ $TOKEN_ $IPv6_ >/dev/null 2>&1" > "$CRONFILE"
echo "*/5 * * * * root $INSTALLPATH/spdnsUpdater.sh $DOMAIN_ $TOKEN_ $IPv6_ >/dev/null 2>&1" > "$CRONFILE"
chmod +x "$CRONFILE"
# First-time execution of update script and print response from spdns.de server

View File

@ -134,6 +134,12 @@ EOF
[[ ! -f /.docker-image ]] && {
:
}
# Update cronfile for DDNS_spDYN if existing
cd /etc/cron.d
[[ -f spdnsupdater ]] && {
sed -i "s|.* [* * * *]|*/5 * * * *|" spdnsupdater
}
# update nc-restore
cd "$CONFDIR" &>/dev/null