Files
server/var/lib/dpkg/info/dbus-system-bus-common.postinst
2026-01-07 20:52:11 +01:00

27 lines
497 B
Bash
Executable File

#!/bin/sh
# Copyright © 2003 Colin Walters <walters@debian.org>
# Copyright © 2006 Sjoerd Simons <sjoerd@debian.org>
set -e
MESSAGEUSER=messagebus
in_sysroot () {
if [ -z "${DPKG_ROOT:-}" ]; then
"$@"
else
chroot "${DPKG_ROOT}" "$@"
fi
}
if [ "$1" = configure ]; then
in_sysroot adduser --system \
--quiet \
--home /nonexistent \
--no-create-home \
--disabled-password \
--group "$MESSAGEUSER"
fi