summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd.build
diff options
context:
space:
mode:
authorJonathan Bauer2013-06-21 17:40:59 +0200
committerJonathan Bauer2013-06-21 17:40:59 +0200
commitc66fee72746eb35afe0d820fb9fbff0a1755f58f (patch)
tree8b241039ebb76de52615bbdd84a9cf9706ddcc59 /remote/modules/systemd/systemd.build
parent[pam] reverted to old pam config (diff)
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-c66fee72746eb35afe0d820fb9fbff0a1755f58f.tar.gz
tm-scripts-c66fee72746eb35afe0d820fb9fbff0a1755f58f.tar.xz
tm-scripts-c66fee72746eb35afe0d820fb9fbff0a1755f58f.zip
Merge branch 'master' of git:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/systemd/systemd.build')
-rw-r--r--remote/modules/systemd/systemd.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build
index 8f4081e3..8052ca4e 100644
--- a/remote/modules/systemd/systemd.build
+++ b/remote/modules/systemd/systemd.build
@@ -30,8 +30,12 @@ build () {
# Delete unneeded services
pinfo "Deleting unneeded services"
local SERVICE=
+ local OTHER=
for SERVICE in $REQUIRED_DISABLED_SERVICES; do
- find "${MODULE_BUILD_DIR}" -name "$SERVICE" -delete
+ find "${MODULE_BUILD_DIR}" -name "$SERVICE" -exec rm -r {} \;
+ for OTHER in $(grep -l -r "$SERVICE" "$MODULE_BUILD_DIR/usr/lib/systemd/system"); do
+ sed -i -r "s#\s*$SERVICE\s*# #g" "$OTHER"
+ done
done
}