1 Enable kolabd after configuration is complete. 2 kolabd is disabled when installed. 3 4 --- a/pykolab/setup/setup_kolabd.py 5 +++ b/pykolab/setup/setup_kolabd.py 6 @@ -27,6 +27,7 @@ 7 from pykolab import utils 8 from pykolab.constants import * 9 from pykolab.translate import _ 10 +from augeas import Augeas 11 12 log = pykolab.getLogger('pykolab.setup') 13 conf = pykolab.getConf() 14 @@ -62,6 +63,14 @@ 15 conf.cfg_parser.write(fp) 16 fp.close() 17 18 + if os.path.isfile('/etc/default/kolab-server'): 19 + myaugeas = Augeas() 20 + setting = os.path.join('/files/etc/default/kolab-server','START') 21 + if not myaugeas.get(setting) == 'yes': 22 + myaugeas.set(setting,'yes') 23 + myaugeas.save() 24 + myaugeas.close() 25 + 26 if os.path.isfile('/bin/systemctl'): 27 subprocess.call(['/bin/systemctl', 'restart', 'kolabd.service']) 28 elif os.path.isfile('/sbin/service'):