* Fix sgi-cgi postinst
This commit is contained in:
parent
72aa111b22
commit
8d2f6c7041
1 changed files with 7 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
||||||
#!/bin/sh
|
#!/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
|
for i in $PATTERNS
|
||||||
do
|
do
|
||||||
grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
|
grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -n "${IPKG_INSTROOT}" ] || /etc/init.d/httpd restart
|
||||||
|
|
||||||
[ -n "${IPKG_INSTROOT}" ] || /etc/init.d/httpd restart
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue