summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_freebusy.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup/setup_freebusy.py')
-rw-r--r--pykolab/setup/setup_freebusy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_freebusy.py b/pykolab/setup/setup_freebusy.py
index 3b522f1..22c74c4 100644
--- a/pykolab/setup/setup_freebusy.py
+++ b/pykolab/setup/setup_freebusy.py
@@ -21,6 +21,7 @@ from Cheetah.Template import Template
import os
import subprocess
import sys
+import time
import components
@@ -106,6 +107,8 @@ def execute(*args, **kw):
fp.write(t.__str__())
fp.close()
+ time.sleep(2)
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])