summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-haserl/ipkg/postinst
blob: 483a0867a44076d4e5e1bc01a44e7a02832b7152 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
PATTERNS='/cgi-bin/luci/admin:root:$p$root /cgi-bin/luci-upload: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 

[ -n ${IPKG_INSTROOT} ] || /etc/init.d/httpd restart