summaryrefslogtreecommitdiffstats
path: root/abs/core/lighttpd/lighttpd.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/lighttpd/lighttpd.install')
-rwxr-xr-xabs/core/lighttpd/lighttpd.install10
1 files changed, 6 insertions, 4 deletions
diff --git a/abs/core/lighttpd/lighttpd.install b/abs/core/lighttpd/lighttpd.install
index a921b0f..55915f9 100755
--- a/abs/core/lighttpd/lighttpd.install
+++ b/abs/core/lighttpd/lighttpd.install
@@ -1,7 +1,9 @@
-pre_upgrade() {
- mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old
+post_install() {
+ if [[ ! -d run/lighttpd ]]; then
+ usr/bin/systemd-tmpfiles --create lighttpd.conf
+ fi
}
+
post_upgrade() {
- sed -i 's|"^/mythweb|"^/{1,2}mythweb|g' /etc/lighttpd/lighttpd.conf
- touch /etc/lighttpd/lighttpd.user
+ post_install
}