summaryrefslogtreecommitdiffstats
path: root/remote/modules/sssd
diff options
context:
space:
mode:
authorChristian Rößler2015-03-23 15:38:10 +0100
committerChristian Rößler2015-03-23 15:38:10 +0100
commitdc7fd2a83b9f9f92bffc15d74d770cb215ca4db7 (patch)
tree6e59666c4c3f12c7906b7331e5c5863290e7e3ae /remote/modules/sssd
parentFix last commit (diff)
downloadtm-scripts-dc7fd2a83b9f9f92bffc15d74d770cb215ca4db7.tar.gz
tm-scripts-dc7fd2a83b9f9f92bffc15d74d770cb215ca4db7.tar.xz
tm-scripts-dc7fd2a83b9f9f92bffc15d74d770cb215ca4db7.zip
[systemd, sssd] Patches for openSuse 13.2
Diffstat (limited to 'remote/modules/sssd')
-rw-r--r--remote/modules/sssd/module.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/modules/sssd/module.build b/remote/modules/sssd/module.build
index c6070455..041fd5bd 100644
--- a/remote/modules/sssd/module.build
+++ b/remote/modules/sssd/module.build
@@ -16,6 +16,12 @@ build() {
mkdir -p "${MODULE_BUILD_DIR}/etc/systemd/system"
sed "s,%PATH%,${SSSD_PATH},g" "${MODULE_DIR}/templates/sssd-systemd.service" > "${MODULE_BUILD_DIR}/etc/systemd/system/sssd.service" || perror "Could not fill sssd.service template"
+ # openSuse sssd does not start when /etc/sssd/sssd.conf is not root:root 600!
+ if [ "$SYS_DISTRIBUTION" == "opensuse" -a "$SYS_VERSION" == "13.2" ]; then
+ sed -i 's#ExecStart#ExecStartPre=/opt/openslx/bin/chmod 600 /etc/sssd/sssd.conf\nExecStart#g' \
+ "${MODULE_BUILD_DIR}/etc/systemd/system/sssd.service"
+ fi
+
return 0
}