Projects
Kolab:3.4
pykolab
enable-kolabd.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File enable-kolabd.patch of Package pykolab (Revision 101)
Currently displaying revision
101
,
Show latest
Enable kolabd after configuration is complete. kolabd is disabled when installed. --- a/pykolab/setup/setup_kolabd.py +++ b/pykolab/setup/setup_kolabd.py @@ -27,6 +27,7 @@ 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 @@ 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'):
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.