Dynamic dns

This commit is contained in:
Bob Mottram 2014-10-05 17:22:04 +01:00
parent 0339146bc2
commit 7136389202
1 changed files with 1 additions and 1 deletions

View File

@ -2618,7 +2618,7 @@ function dynamic_dns_freedns {
chmod +x /usr/bin/dynamicdns
if ! grep -q "dynamicdns" /etc/crontab; then
sed -i '/# m h dom mon dow user command/a\*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' /etc/crontab
echo '*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' >> /etc/crontab
fi
service cron restart
echo 'dynamic_dns_freedns' >> $COMPLETION_FILE