projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* luci/statistics: add postinstall for package, fix permissions of luci-ff-hannover...
[project/luci.git]
/
contrib
/
package
/
luci
/
ipkg
/
luci-sgi-haserl.postinst
1
#!/bin/sh
2
PATTERNS='/cgi-bin/luci/admin:root:$p$root /cgi-bin/luci-upload: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