From 884afd866f5138f5a400ab2cc754fa96df74cd88 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 7 Jul 2026 23:26:17 +0100 Subject: Install and use sysusers.d config files 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 Note that this does not require a hard dependency on systemd, debhelper generates depetencies correctly so that they work out of the box on non-systemd and non-linux Debian builds seamlessly. --- debian/lacme.postinst | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 debian/lacme.postinst (limited to 'debian/lacme.postinst') diff --git a/debian/lacme.postinst b/debian/lacme.postinst deleted file mode 100755 index 536e37f..0000000 --- a/debian/lacme.postinst +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -if [ "$1" = "configure" ]; then - if ! getent passwd _lacme-www >/dev/null; then - adduser --force-badname --system \ - --home /nonexistent --no-create-home \ - --gecos "lacme www user" \ - --quiet _lacme-www || true - fi - if ! getent passwd _lacme-client >/dev/null; then - adduser --force-badname --system \ - --home /nonexistent --no-create-home \ - --gecos "lacme client user" \ - --quiet _lacme-client || true - fi -fi - -#DEBHELPER# -exit 0 -- cgit v1.2.3