summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-haserl/ipkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sgi-haserl/ipkg/postinst')
-rwxr-xr-xlibs/sgi-haserl/ipkg/postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/sgi-haserl/ipkg/postinst b/libs/sgi-haserl/ipkg/postinst
new file mode 100755
index 0000000000..483a0867a4
--- /dev/null
+++ b/libs/sgi-haserl/ipkg/postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+PATTERNS='/cgi-bin/luci/admin:root:$p$root /cgi-bin/luci-upload:root:$p$root'
+
+for i in $PATTERNS
+do
+ grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
+done
+
+[ -n ${IPKG_INSTROOT} ] || /etc/init.d/httpd restart