From 17cfe7877761063b0a1fedec806672d1b4bdbcff Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 31 Oct 2013 15:09:54 +0100 Subject: [PATCH] Wait 2 minutes at postinstall if domain is dynamic --- yunohost_tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yunohost_tools.py b/yunohost_tools.py index 8aa2c50d..f3192ab5 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -31,6 +31,7 @@ import getpass import subprocess import requests import json +import time from yunohost import YunoHostError, YunoHostLDAP, validate, colorize, get_required_args, win_msg from yunohost_domain import domain_add, domain_list from yunohost_dyndns import dyndns_subscribe @@ -193,7 +194,8 @@ def tools_maindomain(old_domain, new_domain, dyndns=False): dyndomain = '.'.join(new_domain.split('.')[1:]) if dyndomain in dyndomains: dyndns_subscribe(domain=new_domain) - os.system('yunohost dyndns update | at now + 2 minutes') + time.sleep(120) + os.system('yunohost dyndns update') win_msg(_("Main domain has been successfully changed"))