also set group ownership on icinga2 cmd dir
This commit is contained in:
parent
3bbc528da8
commit
66f82dd6f8
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.41 2015/11/16 12:19:12 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.42 2015/11/16 12:51:42 sthen Exp $
|
||||
|
||||
BROKEN-hppa = needs 64-bit atomic ops; __sync_add_and_fetch_4
|
||||
SHARED_ONLY = Yes
|
||||
@ -9,7 +9,7 @@ COMMENT-pgsql = PostgreSQL support for icinga2
|
||||
|
||||
V = 2.3.11
|
||||
REVISION = 1
|
||||
REVISION-main = 5
|
||||
REVISION-main = 6
|
||||
EPOCH = 0
|
||||
GH_ACCOUNT = Icinga
|
||||
GH_PROJECT = icinga2
|
||||
|
@ -1,5 +1,6 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.14 2015/10/21 09:34:03 sthen Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.15 2015/11/16 12:51:42 sthen Exp $
|
||||
@newgroup _icinga:667
|
||||
@newgroup _icingaweb2:762
|
||||
@newuser _icinga:667:_icinga:daemon:Icinga user:/var/icinga:/sbin/nologin
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/icinga2/etc*
|
||||
@extraunexec rm -rf ${LOCALSTATEDIR}/lib/icinga2/*
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: icinga2.rc,v 1.8 2015/11/16 12:19:12 sthen Exp $
|
||||
# $OpenBSD: icinga2.rc,v 1.9 2015/11/16 12:51:42 sthen Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/icinga2 daemon -d"
|
||||
daemon_user="_icinga"
|
||||
@ -10,8 +10,8 @@ daemon_user="_icinga"
|
||||
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
|
||||
|
||||
rc_pre() {
|
||||
install -d -o ${daemon_user} /var/www/var/run/icinga2{,/cmd}
|
||||
ln -s /var/www/var/run/icinga2 /var/run/icinga2
|
||||
install -d -o ${daemon_user} -g _icingaweb2 /var/www/var/run/icinga2{,/cmd}
|
||||
ln -fs /var/www/var/run/icinga2 /var/run/icinga2
|
||||
}
|
||||
|
||||
rc_cmd $1
|
||||
|
Loading…
Reference in New Issue
Block a user