fix PS1 for non tsec user

ensure prompt looks the same for all users, especially WRT `auto` and `user` install
This commit is contained in:
Marco Ochse 2018-11-01 15:42:16 +01:00 committed by GitHub
parent 13e86a04e8
commit 5890fa42a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,10 +742,13 @@ tee -a /root/.bashrc 2>&1>/dev/null <<EOF
$myROOTPROMPT
PATH="$PATH:/opt/tpot/bin"
EOF
tee -a /home/tsec/.bashrc 2>&1>/dev/null <<EOF
for i in $(ls -d /home/*/)
do
tee -a $i.bashrc 2>&1>/dev/null <<EOF
$myUSERPROMPT
PATH="$PATH:/opt/tpot/bin"
EOF
done
# Let's create ews.ip before reboot and prevent race condition for first start
/opt/tpot/bin/updateip.sh 2>&1>/dev/null