aboutsummaryrefslogtreecommitdiffstats
path: root/community/icingaweb2
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 08:28:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-04-25 08:28:10 +0000
commit9c7f7953dca42500c91cd7904fd872e007c69c48 (patch)
treea33ab071b47b8c109cf6c7815a49575fcec61b3b /community/icingaweb2
parent30b01c8f5a91e076fcae13e72e95066eb2fee4ba (diff)
downloadaports-9c7f7953dca42500c91cd7904fd872e007c69c48.tar.bz2
aports-9c7f7953dca42500c91cd7904fd872e007c69c48.tar.xz
community/icingaweb2: added pre-install script which creates icingaweb2 group
Diffstat (limited to 'community/icingaweb2')
-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