summaryrefslogtreecommitdiff
path: root/debian/radius-shell.postinst
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2025-04-14 10:18:06 +0100
committerDaniil Baturin <daniil@baturin.org>2025-04-14 10:18:06 +0100
commit952838bf73d6a919ec54e38202e7eabec0988692 (patch)
tree3048a9a17c1b3433cb331da34a82dab38f5b201a /debian/radius-shell.postinst
parent86fe45df9cd2a461f646b92eb98c4c7b07ee7fed (diff)
downloadlibpam-radius-auth-952838bf73d6a919ec54e38202e7eabec0988692.tar.gz
libpam-radius-auth-952838bf73d6a919ec54e38202e7eabec0988692.zip
packaging: T7336: add missing renamed for the radius-shell package
Diffstat (limited to 'debian/radius-shell.postinst')
-rw-r--r--debian/radius-shell.postinst32
1 files changed, 0 insertions, 32 deletions
diff --git a/debian/radius-shell.postinst b/debian/radius-shell.postinst
deleted file mode 100644
index 5c766f2..0000000
--- a/debian/radius-shell.postinst
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh
-
-set -e
-
-# we depend on libnss-mapuser, so that the radius group will have been
-# created before this script runs.
-
-case "$1" in
- configure)
- radshell=/sbin/radius_shell
- chmod 750 $radshell
- chgrp users $radshell
- setcap cap_setuid+ep $radshell
- # The users will have been created by the libnss-mapuser package
- # and possibly by an older version, so change the shells here.
- # This also prevents a loop in package install ordering dependencies
- for usr in radius_user radius_priv_user; do
- uent="$(getent -s compat passwd $usr 2>/dev/null)" || true
- [ -z "$uent" ] && continue
- case "$uent" in
- *${radshell}*) ;;
- *) chsh -s $radshell $usr ;;
- esac
- done
- if [ -x /usr/sbin/add-shell ]; then
- /usr/sbin/add-shell /sbin/radius_shell
- fi
- ;;
-esac
-
-#DEBHELPER#
-