aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/lighttpd/APKBUILD4
-rw-r--r--main/lighttpd/lighttpd.pre-install3
l---------main/lighttpd/lighttpd.pre-upgrade1
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