Projects
Kolab:3.4
pykolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 133
View file
pykolab.spec
Changed
@@ -36,6 +36,7 @@ Source0: http://files.kolab.org/releases/%{name}-%{version}.tar.gz Patch0: fix_mariadb_centos7.patch +Patch1: fix_disrvadmin_centos7.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch @@ -201,6 +202,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build autoreconf -v @@ -529,6 +531,7 @@ * Thu Feb 12 2015 Timotheus Pokorra (TBits.net) <tp@tbits.net> - fix for CentOS7, start service mariadb instead of mysqld. fixing #3877 - create /var/run/kolabd, fixing #2626 +- fix for CentOS7, only enable dirsrv-admin.service if it actually exists. fixing #4554 * Fri Jan 23 2015 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 0.7.7-1 - Implement #4256, allowing Wallace messages to be localized
View file
fix_disrvadmin_centos7.patch
Added
@@ -0,0 +1,29 @@ +From 5c2b539828cab0e83dca72e40ccb2f296dd5611a Mon Sep 17 00:00:00 2001 +From: Timotheus Pokorra <tp@tbits.net> +Date: Thu, 12 Feb 2015 16:30:53 +0100 +Subject: [PATCH 2/2] show meaningful error message if dirsrv-admin.service + does not exist fixes #4554 + +--- + pykolab/setup/setup_ldap.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py +index 04311d2..c805d20 100644 +--- a/pykolab/setup/setup_ldap.py ++++ b/pykolab/setup/setup_ldap.py +@@ -670,7 +670,10 @@ ServerAdminPwd = %(admin_pass)s + auth._auth.ldap.modify_s(dn, modlist) + + if os.path.isfile('/bin/systemctl'): +- subprocess.call(['/bin/systemctl', 'enable', 'dirsrv-admin.service']) ++ if not os.path.isfile('/usr/lib/systemd/system/dirsrv-admin.service'): ++ log.info(_("directory server admin service not available")) ++ else: ++ subprocess.call(['/bin/systemctl', 'enable', 'dirsrv-admin.service']) + elif os.path.isfile('/sbin/chkconfig'): + subprocess.call(['/sbin/chkconfig', 'dirsrv-admin', 'on']) + elif os.path.isfile('/usr/sbin/update-rc.d'): +-- +1.8.3.1 +
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
.