aboutsummaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-02 08:43:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-02 08:51:59 +0000
commitc08ec0cafaaf25b4c83499fac69819b919354f45 (patch)
tree35784317d7ee4d27daf6e57d4726e14ab2ab8109 /main/mini_httpd/mini_httpd.pre-install
parent9d0eac076fd40cc142247a8235a4d8f1b67a35f8 (diff)
downloadaports-c08ec0cafaaf25b4c83499fac69819b919354f45.tar.gz
aports-c08ec0cafaaf25b4c83499fac69819b919354f45.tar.bz2
aports-c08ec0cafaaf25b4c83499fac69819b919354f45.tar.xz
main/mini_httpd: move config to /etc/mini_httpd/
and provide upgrade path
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