projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Fix sgi-cgi postinst
[project/luci.git]
/
libs
/
sgi-cgi
/
ipkg
/
postinst
1
#!/bin/sh
2
PATTERNS='/cgi-bin/luci/admin:root:$p$root'
3
4
for i in $PATTERNS
5
do
6
grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
7
done
8
9
[ -n "${IPKG_INSTROOT}" ] || /etc/init.d/httpd restart
10