[pkg-nagios-changes] [Git][nagios-team/icinga2][master] Install and use sysusers.d config file
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sun Apr 26 15:29:33 BST 2026
Bas Couwenberg pushed to branch master at Debian Nagios Maintainer Group / icinga2
Commits:
80f9e59d by Luca Boccassi at 2026-04-26T14:17:01+01:00
Install and use sysusers.d config file
sysusers.d config files allow a package to use
declarative configuration instead of manually written
maintainer scripts. This also allows image-based systems to
be created with /usr/ only, and also allows for factory
resetting a system and recreating /etc/ on boot.
https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html
- - - - -
3 changed files:
- debian/control
- debian/icinga2-common.postinst
- + debian/icinga2-common.sysusers
Changes:
=====================================
debian/control
=====================================
@@ -10,6 +10,7 @@ Build-Depends: bash-completion,
cmake,
debhelper-compat (= 13),
dh-sequence-bash-completion,
+ dh-sequence-installsysusers,
dh-sequence-vim-addon,
dh-vim-addon,
flex,
@@ -67,8 +68,7 @@ Description: host and network monitoring system
Package: icinga2-common
Architecture: all
-Depends: adduser,
- lsb-release,
+Depends: lsb-release,
sysvinit-utils (>= 3.05-4~),
${misc:Depends}
Recommends: logrotate
=====================================
debian/icinga2-common.postinst
=====================================
@@ -31,11 +31,7 @@ is_fresh_install()
case "$1" in
configure)
- if ! getent passwd nagios > /dev/null ; then
- echo 'Adding system-user for nagios' 1>&2
- adduser --system --group --home /var/lib/nagios \
- --disabled-login --force-badname nagios > /dev/null
- fi
+ systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} icinga2-common.conf
# explicitly set permissions on some files that are dependent
# on the uid/gid of the nagios user, which is dynamically created.
=====================================
debian/icinga2-common.sysusers
=====================================
@@ -0,0 +1 @@
+u! nagios - - /var/lib/nagios
View it on GitLab: https://salsa.debian.org/nagios-team/icinga2/-/commit/80f9e59da41fdcba827ee68012cddad42716b9f2
--
View it on GitLab: https://salsa.debian.org/nagios-team/icinga2/-/commit/80f9e59da41fdcba827ee68012cddad42716b9f2
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20260426/daaf8353/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list