aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-07-21 06:35:20 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-21 06:35:29 +0000
commit6be6d78ca4978e3667965ee07abff4205b999087 (patch)
treeb4495862bfa3c80f17b50f6de16ddbba949c7c46 /main/apache2
parent6a0bb4f8ce4967ce039f312f5c7a8a8351783b4f (diff)
downloadaports-6be6d78ca4978e3667965ee07abff4205b999087.tar.bz2
aports-6be6d78ca4978e3667965ee07abff4205b999087.tar.xz
main/apache2: create users apache and make apache beloning to www-data
Diffstat (limited to 'main/apache2')
-rw-r--r--main/apache2/APKBUILD4
-rw-r--r--main/apache2/apache2.pre-install5
2 files changed, 7 insertions, 2 deletions
diff --git a/main/apache2/APKBUILD b/main/apache2/APKBUILD
index ee86474ec4..ae4b7ffda0 100644
--- a/main/apache2/APKBUILD
+++ b/main/apache2/APKBUILD
@@ -1,13 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apache2
pkgver=2.4.12
-pkgrel=3
+pkgrel=4
pkgdesc="A high performance Unix-based HTTP server"
url="http://httpd.apache.org/"
arch="all"
license="ASL 2.0"
depends=""
-install="$pkgname.pre-upgrade"
+install="$pkgname.pre-upgrade $pkgname.pre-install"
pkgusers="apache"
pkggroups="apache"
makedepends="apr-dev apr-util-dev autoconf automake libxml2-dev lua-dev
diff --git a/main/apache2/apache2.pre-install b/main/apache2/apache2.pre-install
new file mode 100644
index 0000000000..7b93899334
--- /dev/null
+++ b/main/apache2/apache2.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+addgroup -g 82 -S www-data 2>/dev/null
+adduser -H -h /var/www -s /sbin/nologin -D apache 2>/dev/null
+addgroup apache www-data 2>/dev/null
+exit 0