main/lighttpd: add lighttpd to www-data group

and make sure www-data is created on upgrade

ref #2245
This commit is contained in:
Natanael Copa 2013-10-28 10:42:10 +00:00
parent 6394d7d8c3
commit e15798a474
3 changed files with 6 additions and 2 deletions

View File

@ -2,12 +2,12 @@
pkgname=lighttpd
pkgver=1.4.33
_streamver=2.2.0
pkgrel=1
pkgrel=2
pkgdesc="a secure, fast, compliant and very flexible web-server"
url="http://www.lighttpd.net/"
arch="all"
license="custom"
install="$pkgname.pre-install"
install="$pkgname.pre-install $pkgname.pre-upgrade"
depends=
pkgusers="lighttpd"
pkggroups="lighttpd"

View File

@ -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

View File

@ -0,0 +1 @@
lighttpd.pre-install