summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/ffluci/ipkg
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-06 12:08:05 +0000
committerSteven Barth <steven@midlink.org>2008-04-06 12:08:05 +0000
commit6f934c0dbe089c532e2eef8b4008618ae2945ab0 (patch)
tree11f2504337ea2d69cd64a5e1d64174e6abb26b8c /contrib/package/ffluci/ipkg
parent9ba8d2aea994c832316f111354668f52de831043 (diff)
* Added file upload capabilities
Diffstat (limited to 'contrib/package/ffluci/ipkg')
-rwxr-xr-xcontrib/package/ffluci/ipkg/ffluci.postinst9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/package/ffluci/ipkg/ffluci.postinst b/contrib/package/ffluci/ipkg/ffluci.postinst
index 7265cb96b8..97ada182d5 100755
--- a/contrib/package/ffluci/ipkg/ffluci.postinst
+++ b/contrib/package/ffluci/ipkg/ffluci.postinst
@@ -1,4 +1,9 @@
#!/bin/sh
-PATTERN='/cgi-bin/ffluci/admin:root:$p$root'
-grep $PATTERN ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo $PATTERN >> ${IPKG_INSTROOT}/etc/httpd.conf
+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