summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/lighttpd.postinst
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-03-08 13:24:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-03-08 13:24:26 +0100
commitf2b154b7d74e21b7e655c6cd121155592c1bee03 (patch)
treed1d8f06abeb89834cebb70d33229aff129b9d485 /package/lighttpd/files/lighttpd.postinst
parentc93c25a63b3b5a29a258460519ed36341da2e79e (diff)
parent63e65ec30b763d6687d462c52cb46bd5e738928a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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