aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lacme.postinst
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2026-07-07 23:26:17 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2026-07-07 23:26:17 +0100
commit884afd866f5138f5a400ab2cc754fa96df74cd88 (patch)
treeab05bcda33a1d8b3f59cb6871e72f6d409c63b1b /debian/lacme.postinst
parent61c7869ddd55369b1a652b5fafb8f27215c6c9dd (diff)
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.
Diffstat (limited to 'debian/lacme.postinst')
-rwxr-xr-xdebian/lacme.postinst21
1 files changed, 0 insertions, 21 deletions
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