mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Removed useless call to dns push
This commit is contained in:
parent
0903460fc4
commit
dd51adcd3f
1 changed files with 0 additions and 9 deletions
|
@ -229,15 +229,6 @@ def dyndns_unsubscribe(operation_logger, domain, password=None):
|
||||||
# in /etc/yunohost/dyndns
|
# in /etc/yunohost/dyndns
|
||||||
regen_conf(["yunohost"])
|
regen_conf(["yunohost"])
|
||||||
|
|
||||||
# Add some dyndns update in 2 and 4 minutes from now such that user should
|
|
||||||
# not have to wait 10ish minutes for the conf to propagate
|
|
||||||
cmd = (
|
|
||||||
f"at -M now + {{t}} >/dev/null 2>&1 <<< \"/bin/bash -c 'yunohost domain dns push {domain}'\""
|
|
||||||
)
|
|
||||||
# For some reason subprocess doesn't like the redirections so we have to use bash -c explicity...
|
|
||||||
subprocess.check_call(["bash", "-c", cmd.format(t="2 min")])
|
|
||||||
subprocess.check_call(["bash", "-c", cmd.format(t="4 min")])
|
|
||||||
|
|
||||||
logger.success(m18n.n("dyndns_unregistered"))
|
logger.success(m18n.n("dyndns_unregistered"))
|
||||||
elif r.status_code == 403: # Wrong password
|
elif r.status_code == 403: # Wrong password
|
||||||
raise YunohostError("dyndns_unsubscribe_wrong_password")
|
raise YunohostError("dyndns_unsubscribe_wrong_password")
|
||||||
|
|
Loading…
Add table
Reference in a new issue