aboutsummaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/mini_httpd/mini_httpd.pre-install')
-rw-r--r--main/mini_httpd/mini_httpd.pre-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/mini_httpd/mini_httpd.pre-install b/main/mini_httpd/mini_httpd.pre-install
new file mode 100644
index 0000000000..6f8eaae18c
--- /dev/null
+++ b/main/mini_httpd/mini_httpd.pre-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# move config if needed and create compat symlink
+if [ -f /etc/mini_httpd.conf ] && ! [ -L /etc/mini_httpd.conf ]; then
+ mkdir -p /etc/mini_httpd
+ mv /etc/mini_httpd.conf /etc/mini_httpd/mini_httpd.conf \
+ && ln -s mini_httpd/mini_httpd.conf /etc/mini_httpd.conf
+fi
+exit 0