diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-27 03:50:32 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-28 08:25:12 -0500 |
commit | 140939d6f58db93a5132fbdc26918e47dde5bf87 (patch) | |
tree | a4a554c4323d33f8f58ca862706bb2f2ea20cb2e /pcr/icinga2/icinga2.install | |
parent | f82e9c826ebf0e7d696549d27dcc953aa44c229b (diff) | |
download | abslibre-140939d6f58db93a5132fbdc26918e47dde5bf87.tar.gz abslibre-140939d6f58db93a5132fbdc26918e47dde5bf87.tar.bz2 abslibre-140939d6f58db93a5132fbdc26918e47dde5bf87.zip |
[icinga2]: upgrade to v2.12.3
Diffstat (limited to 'pcr/icinga2/icinga2.install')
-rw-r--r-- | pcr/icinga2/icinga2.install | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pcr/icinga2/icinga2.install b/pcr/icinga2/icinga2.install index 14ec50e3d..961c26098 100644 --- a/pcr/icinga2/icinga2.install +++ b/pcr/icinga2/icinga2.install @@ -1,7 +1,5 @@ post_install() { - /usr/bin/getent group icinga &> /dev/null || /usr/bin/groupadd -r icinga &> /dev/null - /usr/bin/getent group icingacmd &> /dev/null || /usr/bin/groupadd -r icingacmd &> /dev/null - /usr/bin/getent passwd icinga &> /dev/null || /usr/bin/useradd -r -c "icinga" -M -d /var/spool/icinga2 -g icinga -G icingacmd -s /usr/bin/nologin icinga &> /dev/null + /usr/bin/systemd-sysusers icinga2.conf /usr/bin/chown -R icinga:icinga \ /etc/icinga2 \ @@ -12,8 +10,6 @@ post_install() { /var/cache/icinga2 \ /var/log/icinga2 - /usr/bin/systemd-tmpfiles --create icinga2.conf - /usr/bin/icinga2 feature enable checker &> /dev/null /usr/bin/icinga2 feature enable mainlog &> /dev/null /usr/bin/icinga2 feature enable notification &> /dev/null @@ -25,12 +21,6 @@ pre_remove() { [ -f "/etc/icinga2/features-enabled/notification.conf" ] && /usr/bin/icinga2 feature disable notification &> /dev/null } -post_remove() { - /usr/bin/getent passwd icinga &> /dev/null && /usr/bin/userdel icinga &> /dev/null - /usr/bin/getent group icinga &> /dev/null && /usr/bin/groupdel icinga &> /dev/null - /usr/bin/getent group icingacmd &> /dev/null && /usr/bin/groupdel icingacmd &> /dev/null -} - post_upgrade() { if [[ "$(vercmp "$2" '2.8.0')" -lt 0 ]]; then cat << EOF |