mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
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:
parent
13e86a04e8
commit
5890fa42a1
1 changed files with 4 additions and 1 deletions
|
@ -742,10 +742,13 @@ tee -a /root/.bashrc 2>&1>/dev/null <<EOF
|
||||||
$myROOTPROMPT
|
$myROOTPROMPT
|
||||||
PATH="$PATH:/opt/tpot/bin"
|
PATH="$PATH:/opt/tpot/bin"
|
||||||
EOF
|
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
|
$myUSERPROMPT
|
||||||
PATH="$PATH:/opt/tpot/bin"
|
PATH="$PATH:/opt/tpot/bin"
|
||||||
EOF
|
EOF
|
||||||
|
done
|
||||||
|
|
||||||
# Let's create ews.ip before reboot and prevent race condition for first start
|
# Let's create ews.ip before reboot and prevent race condition for first start
|
||||||
/opt/tpot/bin/updateip.sh 2>&1>/dev/null
|
/opt/tpot/bin/updateip.sh 2>&1>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue