Remove legacy freedns updater from crontab if needed
This commit is contained in:
parent
48cb40c2d3
commit
911f9d623b
|
@ -112,6 +112,9 @@ function create_freedns_updater {
|
|||
if [ -f /usr/bin/dynamicdns ]; then
|
||||
rm /usr/bin/dynamicdns
|
||||
fi
|
||||
if grep -q "dynamicdns" /etc/crontab; then
|
||||
sed -i '/dynamicdns/d' /etc/crontab
|
||||
fi
|
||||
|
||||
# add the update command to cron
|
||||
if ! grep -q "/usr/local/bin/freedombone-freedns" /etc/crontab; then
|
||||
|
|
Loading…
Reference in New Issue