summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/ffluci/ipkg/ffluci.postinst
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-27 11:10:09 +0000
committerSteven Barth <steven@midlink.org>2008-04-27 11:10:09 +0000
commite895253a9b6b165f94af3480de59020617b7117c (patch)
treedd2438003c28a2b63b1e07d0e6781aac69bc3c03 /contrib/package/ffluci/ipkg/ffluci.postinst
parentace012a0325a4ad2249b137a0d7c7edcc2a71f54 (diff)
* Fixed broken commit
Diffstat (limited to 'contrib/package/ffluci/ipkg/ffluci.postinst')
-rwxr-xr-xcontrib/package/ffluci/ipkg/ffluci.postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/package/ffluci/ipkg/ffluci.postinst b/contrib/package/ffluci/ipkg/ffluci.postinst
new file mode 100755
index 0000000000..b6703dc06e
--- /dev/null
+++ b/contrib/package/ffluci/ipkg/ffluci.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