blob: 42b4df4fb76d4ff107008de5ce3b00edf0e81597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install() {
/usr/bin/systemd-sysusers icinga2-git.conf
/usr/bin/chown -R icinga:icinga \
/etc/icinga2 \
/var/lib/icinga2 \
/var/spool/icinga2
/usr/bin/chown -R icinga:icingacmd \
/var/cache/icinga2 \
/var/log/icinga2
/usr/bin/icinga2 feature enable checker &> /dev/null
/usr/bin/icinga2 feature enable mainlog &> /dev/null
/usr/bin/icinga2 feature enable notification &> /dev/null
}
pre_remove() {
[ -f "/etc/icinga2/features-enabled/checker.conf" ] && /usr/bin/icinga2 feature disable checker &> /dev/null
[ -f "/etc/icinga2/features-enabled/mainlog.conf" ] && /usr/bin/icinga2 feature disable mainlog &> /dev/null
[ -f "/etc/icinga2/features-enabled/notification.conf" ] && /usr/bin/icinga2 feature disable notification &> /dev/null
}
|