Update yunohost_dyndns.py

This commit is contained in:
Alexis Gavoty 2014-03-03 19:06:09 +01:00
parent 17639a254e
commit 7818ec8117

View file

@ -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"))