mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
community/icingaweb2: implemented post-install script, changed pkggroup
This commit is contained in:
parent
870ecaf7a7
commit
30b01c8f5a
@ -2,7 +2,7 @@
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=icingaweb2
|
||||
pkgver=2.3.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Web Interface for Icinga2"
|
||||
url="http://www.icinga.org"
|
||||
arch="noarch"
|
||||
@ -12,8 +12,8 @@ depends="icinga2 php php-gd php-ldap php-intl php-pgsql php-mysql
|
||||
php-imagick php-pdo_mysql php-pdo_pgsql"
|
||||
depends_dev=""
|
||||
makedepends="$depends_dev"
|
||||
pkggroups="www-data"
|
||||
install=""
|
||||
pkggroups="icingaweb2"
|
||||
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"
|
||||
|
||||
@ -44,20 +44,21 @@ package() {
|
||||
ln -s /usr/share/webapps/icingaweb2/bin/icingacli "$pkgdir"/usr/bin/icingacli
|
||||
chmod 2770 "$pkgdir"/etc/$pkgname
|
||||
chmod 750 "$pkgdir"/var/log/$pkgname
|
||||
chgrp -R $pkggroups "$pkgdir"/etc/$pkgname
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/icingaweb2/LICENSE"
|
||||
|
||||
cat >"$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
|
||||
You need to change the owner of log dir according with the user of your webserver:
|
||||
You need to add to $pkgroups group the owner of the user of your webserver
|
||||
|
||||
For nginx, as example:
|
||||
# chown -R nginx /var/log/icingaweb2
|
||||
# adduser nginx $pkgusers
|
||||
or
|
||||
#adduser nobody $pkgusers
|
||||
|
||||
For Apache:
|
||||
# chown -R apache /var/log/icingaweb2
|
||||
# adduser apache $pkgusers
|
||||
|
||||
For lighttpd:
|
||||
# chown -R lighttpd /var/log/icingaweb2
|
||||
# adduser lighttpd $pkgusers
|
||||
|
||||
Also, you may remove the user of your webserver from group 'icingacmd' if no other icinga web interface is installed.
|
||||
EOF
|
||||
|
||||
6
community/icingaweb2/icingaweb2.post-install
Normal file
6
community/icingaweb2/icingaweb2.post-install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/share/webapps/icingaweb2/bin/icingacli setup config directory --group icingaweb2;
|
||||
echo "Please take note of this setup token. This should be pasted into icingaweb2 setup web page: "
|
||||
/usr/share/webapps/icingaweb2/bin/icingacli setup token create;
|
||||
exit 0
|
||||
Loading…
x
Reference in New Issue
Block a user