updating default password once done

This commit is contained in:
2026-05-31 12:26:20 -04:00
parent ec6c6e67a9
commit 8befa109d5

View File

@@ -5,6 +5,7 @@ set -euo pipefail
function main() {
default_system_pass="kali"
default_go_version="1.26.3"
default_password="redeye6"
printf "\n"
cprint "------------------------------------------------------------"
@@ -12,6 +13,11 @@ function main() {
cprint "------------------------------------------------------------"
read "update_toggle?do you want to preform a full-upgrade? (y/n): "
read -s "custom_password?do you want to update your password? (default: $default_password): "
if [[ -n "$custom_password" ]]; then
default_password="$custom_password"
fi
printf "\n"
read "custom_go_version?what go version should be installed? (default: $default_go_version): "
printf "\n"
if [[ -n "$custom_go_version" ]]; then
@@ -28,8 +34,9 @@ function main() {
installGo "$default_go_version"
installTools
cprint "don't forget to update the default password!"
cprint "done, close this terminal to finish setup"
echo -n "kali:$default_password" | sudo chpasswd
cprint "done"
}
function installGo() {