483a0867a44076d4e5e1bc01a44e7a02832b7152
[project/luci.git] / libs / sgi-haserl / ipkg / 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