diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-28 10:42:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-28 12:07:25 +0000 |
commit | e15798a4740c90d3f79e32dfd8fcb4baf0249018 (patch) | |
tree | 0caed36d4f27065cc4c5ab1dce35066056ea7fa9 /main | |
parent | 6394d7d8c3f4bd6c704943462391ee313bf200b7 (diff) | |
download | aports-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')
-rw-r--r-- | main/lighttpd/APKBUILD | 4 | ||||
-rw-r--r-- | main/lighttpd/lighttpd.pre-install | 3 | ||||
l--------- | main/lighttpd/lighttpd.pre-upgrade | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/main/lighttpd/APKBUILD b/main/lighttpd/APKBUILD index 28da727c53..09a4c2892a 100644 --- a/main/lighttpd/APKBUILD +++ b/main/lighttpd/APKBUILD @@ -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" 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 diff --git a/main/lighttpd/lighttpd.pre-upgrade b/main/lighttpd/lighttpd.pre-upgrade new file mode 120000 index 0000000000..18a7fef669 --- /dev/null +++ b/main/lighttpd/lighttpd.pre-upgrade @@ -0,0 +1 @@ +lighttpd.pre-install
\ No newline at end of file |