Skip to content
Snippets Groups Projects
Commit f30471a0 authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't show hostname when logged in as user

This avoids the problem when long onion addresses are the hostname
parent 89e2c97a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment