From af25f5ac17e59b9fb9b3fd82092b1ab82ca54e43 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 18 Apr 2022 18:18:40 +0200 Subject: Fix console displaying message "-bash: TMOUT: readonly variable" (mga#16356) --- profile.d/msec.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profile.d/msec.sh b/profile.d/msec.sh index 76508ae..4a902e7 100755 --- a/profile.d/msec.sh +++ b/profile.d/msec.sh @@ -1,7 +1,8 @@ # shell security options -if [ -r /etc/security/shell ]; then - . /etc/security/shell +if [ -z "$SECSHELL" -a -r /etc/security/shell ]; then + . /etc/security/shell + export SECSHELL=1 fi if [ `id -u` -ge 500 ]; then -- cgit v1.2.1