summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_kolabd.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 13:22:55 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-19 13:22:55 +0200
commitef398699e6a041e718dfec2d67702edd45135e64 (patch)
tree99e9b24704b3d4b38b7cfb953a799eecec47e40e /pykolab/setup/setup_kolabd.py
parent27f4d069f721b254c5db7249bd792d0fec52fc40 (diff)
downloadpykolab-ef398699e6a041e718dfec2d67702edd45135e64.tar.gz
Drop patches from packaging (#3374)
Diffstat (limited to 'pykolab/setup/setup_kolabd.py')
-rw-r--r--pykolab/setup/setup_kolabd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pykolab/setup/setup_kolabd.py b/pykolab/setup/setup_kolabd.py
index 8b8c50e..7c7982d 100644
--- a/pykolab/setup/setup_kolabd.py
+++ b/pykolab/setup/setup_kolabd.py
@@ -27,6 +27,7 @@ import pykolab
from pykolab import utils
from pykolab.constants import *
from pykolab.translate import _
+from augeas import Augeas
log = pykolab.getLogger('pykolab.setup')
conf = pykolab.getConf()
@@ -62,6 +63,14 @@ def execute(*args, **kw):
conf.cfg_parser.write(fp)
fp.close()
+ if os.path.isfile('/etc/default/kolab-server'):
+ myaugeas = Augeas()
+ setting = os.path.join('/files/etc/default/kolab-server','START')
+ if not myaugeas.get(setting) == 'yes':
+ myaugeas.set(setting,'yes')
+ myaugeas.save()
+ myaugeas.close()
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', 'kolabd.service'])
elif os.path.isfile('/sbin/service'):