diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:04 +0000 |
commit | a31a6484b79cf48b4b464a6ab84df3361801076e (patch) | |
tree | a7c33f7023721122d1f49ab1dffdc2cd6a8481a5 /debian/freeradius-common.postinst | |
parent | Adding upstream version 3.2.3+dfsg. (diff) | |
download | freeradius-a31a6484b79cf48b4b464a6ab84df3361801076e.tar.xz freeradius-a31a6484b79cf48b4b464a6ab84df3361801076e.zip |
Adding debian version 3.2.3+dfsg-2.debian/3.2.3+dfsg-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/freeradius-common.postinst')
-rw-r--r-- | debian/freeradius-common.postinst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/freeradius-common.postinst b/debian/freeradius-common.postinst new file mode 100644 index 0000000..df3e9db --- /dev/null +++ b/debian/freeradius-common.postinst @@ -0,0 +1,22 @@ +#!/bin/sh +# vim:ts=2:sw=2:et + +set -e + +case "$1" in + configure) + if [ -z "$2" ]; then + # On a fresh install, add the necessary user and group + adduser --quiet --system --no-create-home --home /etc/freeradius --group --disabled-password freerad || true + + # Put user freerad in group shadow, so the daemon can auth locally + # Only do this on fresh install as the admin may not want freerad in shadow + # group if authenticating by another mechanism + adduser --quiet freerad shadow + fi + ;; +esac + +#DEBHELPER# + +exit 0 |