diff options
Diffstat (limited to 'satellit_installer/includes/10-configurations.inc')
-rw-r--r-- | satellit_installer/includes/10-configurations.inc | 8 |
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 |