aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/icingaweb2/APKBUILD4
-rwxr-xr-x[-rw-r--r--]community/icingaweb2/icingaweb2.post-install0
-rwxr-xr-xcommunity/icingaweb2/icingaweb2.pre-install3
3 files changed, 5 insertions, 2 deletions
diff --git a/community/icingaweb2/APKBUILD b/community/icingaweb2/APKBUILD
index 4a8ce50420..24db0ca621 100644
--- a/community/icingaweb2/APKBUILD
+++ b/community/icingaweb2/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icingaweb2
pkgver=2.3.1
-pkgrel=2
+pkgrel=3
pkgdesc="Web Interface for Icinga2"
url="http://www.icinga.org"
arch="noarch"
@@ -13,7 +13,7 @@ depends="icinga2 php php-gd php-ldap php-intl php-pgsql php-mysql
depends_dev=""
makedepends="$depends_dev"
pkggroups="icingaweb2"
-install="$pkgname.post-install"
+install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/${pkgname}/archive/v${pkgver}.tar.gz"
diff --git a/community/icingaweb2/icingaweb2.post-install b/community/icingaweb2/icingaweb2.post-install
index 425b0c05d2..425b0c05d2 100644..100755
--- a/community/icingaweb2/icingaweb2.post-install
+++ b/community/icingaweb2/icingaweb2.post-install
diff --git a/community/icingaweb2/icingaweb2.pre-install b/community/icingaweb2/icingaweb2.pre-install
new file mode 100755
index 0000000000..2f5d83d203
--- /dev/null
+++ b/community/icingaweb2/icingaweb2.pre-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+addgroup -S icingaweb2 2>/dev/null
+exit 0