mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update yunohost_dyndns.py
This commit is contained in:
parent
17639a254e
commit
7818ec8117
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def dyndns_update(dyn_host="dynhost.yunohost.org", domain=None, key=None, ip=Non
|
|||
with open('/etc/yunohost/dyndns/old_ip', 'w') as f:
|
||||
f.write(new_ip)
|
||||
else:
|
||||
os.remove('/etc/yunohost/dyndns/old_ip')
|
||||
os.system('rm /etc/yunohost/dyndns/old_ip > /dev/null 2>&1')
|
||||
raise YunoHostError(1, _("An error occured during DynDNS update"))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue