This commit is contained in:
Santiago Lo Coco 2022-01-12 18:46:49 -03:00
parent 42d8277278
commit 6e28ec89c5
1 changed files with 7 additions and 7 deletions

View File

@ -283,7 +283,7 @@ getThePackages() {
} }
installImportantPackages() { installImportantPackages() {
calcHeightAndRun "whiptail --msgbox \"We will continue with the installation of some important packages in the background. Please press OK and wait.\" HEIGHT 60 3>&1 1>&2 2>&3" calcHeightAndRun "whiptail --msgbox \"We will continue with the installation of some important packages in the background. Please press OK and wait.\" HEIGHT 60"
getThePackages "Y" "installImportantPackages" getThePackages "Y" "installImportantPackages"
runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" 2>&1 | debug runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" 2>&1 | debug
} }
@ -358,14 +358,14 @@ calcHeightAndRun() {
} }
askForPassword() { askForPassword() {
password=$(calcWidthAndRun "whiptail --passwordbox \"Now, enter the password for ${1}.\" 8 WIDTH 3>&1 1>&2 2>&3") password=$(calcWidthAndRun "whiptail --passwordbox \"Now, enter the password for ${1}.\" 8 WIDTH")
exitIfCancel "You must enter a password." exitIfCancel "You must enter a password."
passwordRep=$(calcWidthAndRun "whiptail --passwordbox \"Reenter password.\" 8 WIDTH 3>&1 1>&2 2>&3") passwordRep=$(calcWidthAndRun "whiptail --passwordbox \"Reenter password.\" 8 WIDTH")
exitIfCancel "You must enter a password." exitIfCancel "You must enter a password."
while ! [ "$password" = "$passwordRep" ]; do while ! [ "$password" = "$passwordRep" ]; do
password=$(calcWidthAndRun "whiptail --passwordbox \"Passwords do not match! Please enter the password again.\" 8 WIDTH 3>&1 1>&2 2>&3") password=$(calcWidthAndRun "whiptail --passwordbox \"Passwords do not match! Please enter the password again.\" 8 WIDTH")
exitIfCancel "You must enter a password." exitIfCancel "You must enter a password."
passwordRep=$(calcWidthAndRun "whiptail --passwordbox \"Reenter password.\" 8 WIDTH 3>&1 1>&2 2>&3") passwordRep=$(calcWidthAndRun "whiptail --passwordbox \"Reenter password.\" 8 WIDTH")
exitIfCancel "You must enter a password." exitIfCancel "You must enter a password."
done done
unset passwordRep unset passwordRep
@ -455,7 +455,7 @@ checkSudoers() {
} }
installOtherPackages() { installOtherPackages() {
calcHeightAndRun "whiptail --msgbox \"Now, we will install a few more packages (in the background). Press OK and wait (it may take some time).\" HEIGHT 60 3>&1 1>&2 2>&3" calcHeightAndRun "whiptail --msgbox \"Now, we will install a few more packages (in the background). Press OK and wait (it may take some time).\" HEIGHT 60"
[ -z "$username" ] && tryLoadVar "username" [ -z "$username" ] && tryLoadVar "username"
getThePackages "S" "installOtherPackages" getThePackages "S" "installOtherPackages"
checkForParu checkForParu
@ -598,4 +598,4 @@ runScript() {
done done
} }
# runScript "$@" runScript "$@"