diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:31 +0000 |
commit | 236cb75e4430569627585a5818d9ce9bc85640f8 (patch) | |
tree | f84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/winbind.postinst | |
parent | Adding upstream version 2:4.17.12+dfsg. (diff) | |
download | samba-debian.tar.xz samba-debian.zip |
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/winbind.postinst')
-rw-r--r-- | debian/winbind.postinst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/winbind.postinst b/debian/winbind.postinst new file mode 100644 index 0000000..9aadab3 --- /dev/null +++ b/debian/winbind.postinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +# in 4.17.4+dfsg-3 we stopped masking services, unmask them here +if [ configure = "$1" ] && dpkg --compare-versions "$2" lt-nl 2:4.17.4+dfsg-3~ +then + for s in winbind; do + if [ /dev/null = $(realpath /etc/systemd/system/$s.service) ] + then + rm -f /etc/systemd/system/$s.service + fi + done +fi + +if [ configure = "$1" -a ! "$2" ] # only do this if not upgrading +then + # groupadd --force: ok if group already exist + groupadd --system --force winbindd_priv + dir=/var/lib/samba/winbindd_privileged + [ -d $dir ] || install -d -m 0750 -g winbindd_priv $dir +fi + +#DEBHELPER# |