forked from forkanization/Proxmox-arm64
add echos to all of them
This commit is contained in:
@@ -146,7 +146,6 @@ echo_default() {
|
|||||||
# This function is called when the user decides to exit the script. It clears the screen and displays an exit message.
|
# This function is called when the user decides to exit the script. It clears the screen and displays an exit message.
|
||||||
exit-script() {
|
exit-script() {
|
||||||
echo -e "⚠ User exited script \n"
|
echo -e "⚠ User exited script \n"
|
||||||
exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function allows the user to configure advanced settings for the script.
|
# This function allows the user to configure advanced settings for the script.
|
||||||
@@ -164,6 +163,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using Distribution: ${BGN}$var_os${CL}"
|
echo -e "${DGN}Using Distribution: ${BGN}$var_os${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo choose debian or ubuntu
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -180,6 +180,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
|
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo debian
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -197,6 +198,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
|
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo ubuntu
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -212,6 +214,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo privledges
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -233,6 +236,7 @@ advanced_settings() {
|
|||||||
whiptail --msgbox "Passwords do not match. Please try again." 8 58
|
whiptail --msgbox "Passwords do not match. Please try again." 8 58
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo passwords 1
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -243,6 +247,7 @@ advanced_settings() {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo passwords 2
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -267,6 +272,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
echo -e "${DGN}Using Hostname: ${BGN}$HN${CL}"
|
echo -e "${DGN}Using Hostname: ${BGN}$HN${CL}"
|
||||||
else
|
else
|
||||||
|
echo hostname
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -282,6 +288,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using Disk Size: ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size: ${BGN}$DISK_SIZE${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo disk size
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -293,6 +300,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Allocated Cores: ${BGN}$CORE_COUNT${CL}"
|
echo -e "${DGN}Allocated Cores: ${BGN}$CORE_COUNT${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo cpu cores
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -304,6 +312,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}"
|
echo -e "${DGN}Allocated RAM: ${BGN}$RAM_SIZE${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo memory
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -315,6 +324,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using Bridge: ${BGN}$BRG${CL}"
|
echo -e "${DGN}Using Bridge: ${BGN}$BRG${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo bridge
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -334,6 +344,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo ipv4
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -364,6 +375,7 @@ advanced_settings() {
|
|||||||
APT_CACHER="${APT_CACHER_IP:+yes}"
|
APT_CACHER="${APT_CACHER_IP:+yes}"
|
||||||
echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}"
|
echo -e "${DGN}Using APT-Cacher IP Address: ${BGN}${APT_CACHER_IP:-Default}${CL}"
|
||||||
else
|
else
|
||||||
|
echo apt-cacher
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -384,6 +396,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}$MTU1${CL}"
|
echo -e "${DGN}Using Interface MTU Size: ${BGN}$MTU1${CL}"
|
||||||
else
|
else
|
||||||
|
echo mtu
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -397,6 +410,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
echo -e "${DGN}Using DNS Search Domain: ${BGN}$SX${CL}"
|
||||||
else
|
else
|
||||||
|
echo dns search
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -409,6 +423,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
echo -e "${DGN}Using DNS Server IP Address: ${BGN}$NX${CL}"
|
||||||
else
|
else
|
||||||
|
echo dns server ip
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -421,6 +436,7 @@ advanced_settings() {
|
|||||||
echo -e "${DGN}Using MAC Address: ${BGN}$MAC1${CL}"
|
echo -e "${DGN}Using MAC Address: ${BGN}$MAC1${CL}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo nac
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -433,6 +449,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||||
else
|
else
|
||||||
|
echo vlan
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user