From 329cda39c1343677603ca38a3488cb6f64ce4b7d Mon Sep 17 00:00:00 2001 From: Sebastian Roth Date: Sun, 28 Apr 2019 23:31:06 +0200 Subject: [PATCH] Move warning script to user home as fogprogramdir does not exist yet at this stage of the installer. As well make sure bash is the users shell so bashrc is actually working. --- lib/common/functions.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/common/functions.sh b/lib/common/functions.sh index 08fe326fdb..d85d5028db 100755 --- a/lib/common/functions.sh +++ b/lib/common/functions.sh @@ -1198,6 +1198,7 @@ configureUsers() { #errorStat $? fi dots "Locking $username as a system account" + chsh -s /bin/bash $username >>$workingdir/error_logs/fog_error_${version}.log 2>&1 textmessage="You seem to be using the '$username' system account to logon and work \non your FOG server system.\n\nIt's NOT recommended to use this account! Please create a new \naccount for administrative tasks.\n\nIf you re-run the installer it would reset the 'fog' account \npassword and therefore lock you out of the system!\n\nTake care, \nyour FOGproject team" grep "exit 1" /home/$username/.bashrc || cat >>/home/$username/.bashrc <$fogprogramdir/warnfogaccount.sh </home/$username/warnfogaccount.sh <