diff options
Diffstat (limited to 'contrib/package/ffluci/ipkg/ffluci-sgi-haserl.postinst')
-rwxr-xr-x | contrib/package/ffluci/ipkg/ffluci-sgi-haserl.postinst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/ffluci/ipkg/ffluci-sgi-haserl.postinst b/contrib/package/ffluci/ipkg/ffluci-sgi-haserl.postinst new file mode 100755 index 000000000..b6703dc06 --- /dev/null +++ b/contrib/package/ffluci/ipkg/ffluci-sgi-haserl.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +PATTERNS='/cgi-bin/ffluci/admin:root:$p$root /cgi-bin/ffluci-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 |