UX: cosmetic improvements on motd and armbian-install

This commit is contained in:
Igor Pecovnik
2024-09-16 20:11:02 +02:00
committed by Igor
parent 5396ffb602
commit 17e1af68cf
3 changed files with 17 additions and 7 deletions

View File

@@ -247,11 +247,12 @@ set_shell() {
;;
esac
done
fi
SHELL_PATH=$(grep "/$USER_SHELL$" /etc/shells | tail -1)
chsh -s "$(grep -iF "/$USER_SHELL" /etc/shells | tail -1)"
# Display shell selection only if needs to be selected
echo -e "\nShell: \x1B[92m${USER_SHELL^^}\x1B[0m"
fi
SHELL_PATH=$(grep "/$USER_SHELL$" /etc/shells | tail -1)
chsh -s "$(grep -iF "/$USER_SHELL" /etc/shells | tail -1)"
# change shell for future users
sed -i "s|^SHELL=.*|SHELL=${SHELL_PATH}|" /etc/default/useradd