[pkg-nagios-changes] [Git][nagios-team/icingaweb2][master] Install and use sysusers.d/tmpfiles.d config files
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sat May 16 17:59:24 BST 2026
Bas Couwenberg pushed to branch master at Debian Nagios Maintainer Group / icingaweb2
Commits:
3d11cb55 by Luca Boccassi at 2026-05-15T22:19:18+01:00
Install and use sysusers.d/tmpfiles.d config files
sysusers.d/tmpfiles.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
https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html
- - - - -
4 changed files:
- debian/control
- − debian/icingaweb2-common.postinst
- + debian/icingaweb2-common.sysusers
- + debian/icingaweb2-common.tmpfiles
Changes:
=====================================
debian/control
=====================================
@@ -6,6 +6,7 @@ Section: admin
Build-Depends: bash-completion,
debhelper-compat (= 13),
dh-sequence-bash-completion,
+ dh-sequence-installsysusers,
php-cli
Standards-Version: 4.7.4
Vcs-Browser: https://salsa.debian.org/nagios-team/icingaweb2
@@ -46,8 +47,7 @@ Description: simple and responsive web interface for Icinga
Package: icingaweb2-common
Architecture: all
-Depends: adduser,
- icinga-php-library (>= 0.19.0),
+Depends: icinga-php-library (>= 0.19.0),
icinga-php-thirdparty (>= 0.15.0),
php-cli,
php-icinga (= ${source:Version}),
@@ -94,8 +94,7 @@ Description: PHP library to communicate with and use Icinga
Package: icingacli
Architecture: all
-Depends: adduser,
- icingaweb2-common (= ${source:Version}),
+Depends: icingaweb2-common (= ${source:Version}),
${misc:Depends}
Recommends: php-cli
Pre-Depends: ${misc:Pre-Depends}
=====================================
debian/icingaweb2-common.postinst deleted
=====================================
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-set -e
-
-setperm() {
- user="$1"
- group="$2"
- mode="$3"
- file="$4"
- shift 4
- # only do something when no setting exists
- if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
- chown "$user":"$group" "$file"
- chmod "$mode" "$file"
- fi
-}
-
-case "$1" in
- configure)
- if ! getent group icingaweb2 > /dev/null ; then
- echo 'Adding system-group for icingaweb2' 1>&2
- addgroup --system icingaweb2 >/dev/null
- fi
- # allow www-data to write icingaweb2 config
- if ! getent group icingaweb2 | grep -q www-data; then
- adduser www-data icingaweb2
- fi
- # secure configuration directory and allow config access
- setperm root icingaweb2 2770 /etc/icingaweb2
- setperm root icingaweb2 2770 /var/lib/icingaweb2
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
-
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
-
-exit 0
=====================================
debian/icingaweb2-common.sysusers
=====================================
@@ -0,0 +1,2 @@
+g icingaweb2 -
+m www-data icingaweb2
=====================================
debian/icingaweb2-common.tmpfiles
=====================================
@@ -0,0 +1,2 @@
+z /etc/icingaweb2 2770 root icingaweb2
+z /var/lib/icingaweb2 2770 root icingaweb2
View it on GitLab: https://salsa.debian.org/nagios-team/icingaweb2/-/commit/3d11cb55d08aca213b0dc4f552b71121158a13de
--
View it on GitLab: https://salsa.debian.org/nagios-team/icingaweb2/-/commit/3d11cb55d08aca213b0dc4f552b71121158a13de
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/20260516/3e82e377/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list