summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/lighttpd.postinst
blob: cde19885828047512fd3d9d54e0dc4443e1b249a (plain)
1
2
3
4
5
6
7
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf lighttpd NO
add_rcconf lighttpd_flags "-f /etc/lighttpd/lighttpd.conf"
gid=$(get_next_gid)
add_user lighttpd $(get_next_uid) $gid /srv/www
add_group lighttpd $gid