summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-15 20:10:20 +0000
committerSteven Barth <steven@midlink.org>2008-06-15 20:10:20 +0000
commit8d2f6c7041ac47f1ea615053d2f693f79f42c1ae (patch)
tree7316486102e96d841040a3caf4ed5ad047af6022 /libs
parent72aa111b2200ec24a6c6c0f895cdbb24ded1132b (diff)
* Fix sgi-cgi postinst
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/sgi-cgi/ipkg/postinst15
1 files changed, 7 insertions, 8 deletions
diff --git a/libs/sgi-cgi/ipkg/postinst b/libs/sgi-cgi/ipkg/postinst
index bbc1e53812..d8780c2e7e 100755
--- a/libs/sgi-cgi/ipkg/postinst
+++ b/libs/sgi-cgi/ipkg/postinst
@@ -1,11 +1,10 @@
#!/bin/sh
-[ -f "${IPKG_INSTROOT}/etc/httpd.conf" ] && {
- PATTERNS='/cgi-bin/luci/admin:root:$p$root'
+PATTERNS='/cgi-bin/luci/admin: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
+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
- [ -n "${IPKG_INSTROOT}" ] || /etc/init.d/httpd restart
-}