aboutsummaryrefslogtreecommitdiffstats
path: root/main/lighttpd/lighttpd.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-28 10:42:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-28 12:07:25 +0000
commite15798a4740c90d3f79e32dfd8fcb4baf0249018 (patch)
tree0caed36d4f27065cc4c5ab1dce35066056ea7fa9 /main/lighttpd/lighttpd.pre-install
parent6394d7d8c3f4bd6c704943462391ee313bf200b7 (diff)
downloadaports-e15798a4740c90d3f79e32dfd8fcb4baf0249018.tar.bz2
aports-e15798a4740c90d3f79e32dfd8fcb4baf0249018.tar.xz
main/lighttpd: add lighttpd to www-data group
and make sure www-data is created on upgrade ref #2245
Diffstat (limited to 'main/lighttpd/lighttpd.pre-install')
-rw-r--r--main/lighttpd/lighttpd.pre-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/lighttpd/lighttpd.pre-install b/main/lighttpd/lighttpd.pre-install
index 4ff00ea20d..578814db98 100644
--- a/main/lighttpd/lighttpd.pre-install
+++ b/main/lighttpd/lighttpd.pre-install
@@ -1,4 +1,7 @@
#!/bin/sh
+addgroup -g 82 -S www-data 2>/dev/null
adduser -H -h /var/www/localhost/htdocs -s /sbin/nologin -D lighttpd 2>/dev/null
+addgroup lighttpd www-data 2>/dev/null
+
exit 0