summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/ffluci/ipkg/ffluci.postinst
blob: 7265cb96b881d2c87481e9c6c1bf9e1145b894e9 (plain)
1
2
3
4
#!/bin/sh
PATTERN='/cgi-bin/ffluci/admin:root:$p$root'
grep $PATTERN ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo $PATTERN >> ${IPKG_INSTROOT}/etc/httpd.conf 
[ -n ${IPKG_INSTROOT} ] || /etc/init.d/httpd restart