mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
dyndns: Delete dyndns cron in regenconf if no dyndns domain found
This commit is contained in:
parent
55bacd7405
commit
cb835a2d6b
1 changed files with 3 additions and 0 deletions
|
@ -112,6 +112,9 @@ SHELL=/bin/bash
|
|||
# - trigger yunohost dyndns update
|
||||
*/10 * * * * root : YunoHost DynDNS update; sleep \$((RANDOM\\%60)); ! ping -q -W5 -c1 ip.yunohost.org >/dev/null 2>&1 || test -e /var/run/moulinette_yunohost.lock || yunohost dyndns update >> /dev/null
|
||||
EOF
|
||||
else
|
||||
# (Delete cron if no dyndns domain found)
|
||||
touch $pending_dir/etc/cron.d/yunohost-dyndns
|
||||
fi
|
||||
|
||||
# legacy stuff to avoid yunohost reporting etckeeper as manually modified
|
||||
|
|
Loading…
Add table
Reference in a new issue