1
0
Fork 0
gdm3/debian/generate-config
Daniel Baumann bce5cba141
Adding debian version 48.0-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 19:45:30 +02:00

25 lines
818 B
Bash

#! /bin/sh
set -e
as_gdm () {
# setsid to dissociate from the controlling terminal, if any.
# Under systemd, this is unnecessary, because this script is called
# from a systemd unit with stdout and stderr pointing to the Journal,
# but under sysvinit, /etc/init.d/gdm3 might be invoked by a sysadmin
# with its controlling terminal shared with their privileged shell.
setsid \
setpriv \
--reuid Debian-gdm --regid Debian-gdm --init-groups \
--no-new-privs \
--inh-caps=-all \
--reset-env \
-- \
"$@"
}
umask 022
install -d /var/lib
install -m711 -oDebian-gdm -gDebian-gdm -d /var/lib/gdm3
as_gdm dconf compile '/var/lib/gdm3/greeter-dconf-defaults' '/usr/share/gdm/dconf'
as_gdm pkill --signal 'HUP' --uid 'Debian-gdm' 'dconf-service' || true