Don't show hostname when logged in as user

This avoids the problem when long onion addresses are the hostname
This commit is contained in:
Bob Mottram 2018-04-05 13:10:21 +01:00
parent 89e2c97a28
commit f30471a0ab
2 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,7 @@ fi
# add user menu on ssh login
if ! grep -q 'controluser' "/home/$ADD_USERNAME/.bashrc"; then
echo 'export PS1="\W \$"' >> "/home/$ADD_USERNAME/.bashrc"
echo 'controluser' >> "/home/$ADD_USERNAME/.bashrc"
fi

View File

@ -64,6 +64,7 @@ $(get_ssh_server_key)
# add user menu on ssh login
if ! grep -q 'controluser' "/home/$MY_USERNAME/.bashrc"; then
echo 'export PS1="\W \$"' >> "/home/$MY_USERNAME/.bashrc"
echo 'controluser' >> "/home/$MY_USERNAME/.bashrc"
fi
if [ ! -f "$IMAGE_PASSWORD_FILE" ]; then