* Fix sgi-cgi postinst

This commit is contained in:
Steven Barth 2008-06-15 20:10:20 +00:00
parent 72aa111b22
commit 8d2f6c7041

View file

@ -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
}