summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-configurations.inc
diff options
context:
space:
mode:
authorChristian Rößler2016-12-16 14:53:59 +0100
committerChristian Rößler2016-12-16 14:53:59 +0100
commit0cd0028158b2d5a80de2d18803746218935a5c04 (patch)
tree5ed0a4d2a10c7d24559e3ea847c57a5b98759ff4 /satellit_installer/includes/10-configurations.inc
parent[SSPS] php children: leeetle bug, children min. 16 (diff)
downloadsetup-scripts-0cd0028158b2d5a80de2d18803746218935a5c04.tar.gz
setup-scripts-0cd0028158b2d5a80de2d18803746218935a5c04.tar.xz
setup-scripts-0cd0028158b2d5a80de2d18803746218935a5c04.zip
[SSPS] php children script to static_files
Diffstat (limited to 'satellit_installer/includes/10-configurations.inc')
-rw-r--r--satellit_installer/includes/10-configurations.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/satellit_installer/includes/10-configurations.inc b/satellit_installer/includes/10-configurations.inc
index 0a58496..6955095 100644
--- a/satellit_installer/includes/10-configurations.inc
+++ b/satellit_installer/includes/10-configurations.inc
@@ -48,9 +48,11 @@ patch_lighttpd_config() {
# see includes/50-copyscripts.inc for dropping patch file /usr/local/sbin/patch_lightdm_phpchildren
if ! grep -q patch_lightdm_phpchildren /lib/systemd/system/lighttpd.service; then
echo -n " patching service file ... "
- sed -i 's#\[Service\]#\[Service\]\nExecStartPre=\-/usr/local/sbin/patch_lightdm_phpchildren#g' \
- /lib/systemd/system/lighttpd.service
- install_lighttpd_phpchild # call to drop patch script
+ sed -i 's#\[Service\]#\[Service\]\nExecStartPre=\-/usr/local/sbin/patch_lighttpd_phpchildren#g' \
+ /lib/systemd/system/lighttpd.service || perror "Could not patch service file!"
+ cp -a "$BASEDIR/static_files/patch_lighttpd_phpchildren" /usr/local/sbin || \
+ perror "Could not copy patch_lighttpd_phpchildren script!"
+ chmod +x /usr/local/sbin/patch_lighttpd_phpchildren # Just to sleep better in dark nights.
fi
else
# service file not found, going old static way