diff options
Diffstat (limited to 'libs/sgi-haserl/ipkg/postinst')
-rwxr-xr-x | libs/sgi-haserl/ipkg/postinst | 9 |
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 000000000..483a0867a --- /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 |