updating default password once done
This commit is contained in:
11
redeye.sh
11
redeye.sh
@@ -5,6 +5,7 @@ set -euo pipefail
|
|||||||
function main() {
|
function main() {
|
||||||
default_system_pass="kali"
|
default_system_pass="kali"
|
||||||
default_go_version="1.26.3"
|
default_go_version="1.26.3"
|
||||||
|
default_password="redeye6"
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
cprint "------------------------------------------------------------"
|
cprint "------------------------------------------------------------"
|
||||||
@@ -12,6 +13,11 @@ function main() {
|
|||||||
cprint "------------------------------------------------------------"
|
cprint "------------------------------------------------------------"
|
||||||
|
|
||||||
read "update_toggle?do you want to preform a full-upgrade? (y/n): "
|
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): "
|
read "custom_go_version?what go version should be installed? (default: $default_go_version): "
|
||||||
printf "\n"
|
printf "\n"
|
||||||
if [[ -n "$custom_go_version" ]]; then
|
if [[ -n "$custom_go_version" ]]; then
|
||||||
@@ -28,8 +34,9 @@ function main() {
|
|||||||
installGo "$default_go_version"
|
installGo "$default_go_version"
|
||||||
installTools
|
installTools
|
||||||
|
|
||||||
cprint "don't forget to update the default password!"
|
echo -n "kali:$default_password" | sudo chpasswd
|
||||||
cprint "done, close this terminal to finish setup"
|
|
||||||
|
cprint "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
function installGo() {
|
function installGo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user