summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/lighttpd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/lighttpd/files/lighttpd.postinst')
-rw-r--r--package/lighttpd/files/lighttpd.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/lighttpd/files/lighttpd.postinst b/package/lighttpd/files/lighttpd.postinst
index e77dadeee..559ccb61c 100644
--- a/package/lighttpd/files/lighttpd.postinst
+++ b/package/lighttpd/files/lighttpd.postinst
@@ -2,3 +2,6 @@
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf lighttpd lighttpd NO
add_rcconf lighttpd_flags lighttpd_flags "-f /etc/lighttpd/lighttpd.conf"
+gid=$(get_next_gid)
+add_user lighttpd $(get_next_uid) $gid /srv/www
+add_group lighttpd $gid