forked from forkanization/Proxmox-arm64
Compare commits
3 Commits
main
...
fix-update
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1611df15b0 | ||
|
|
a74611e979 | ||
|
|
f0478feb12 |
@@ -145,9 +145,7 @@ 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() {
|
||||||
clear
|
|
||||||
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.
|
||||||
@@ -165,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
|
||||||
@@ -181,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
|
||||||
@@ -198,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
|
||||||
@@ -213,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
|
||||||
@@ -234,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
|
||||||
@@ -244,6 +247,7 @@ advanced_settings() {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo passwords 2
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -268,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
|
||||||
|
|
||||||
@@ -283,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
|
||||||
|
|
||||||
@@ -294,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
|
||||||
|
|
||||||
@@ -305,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
|
||||||
|
|
||||||
@@ -316,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
|
||||||
|
|
||||||
@@ -335,6 +344,7 @@ advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
echo ipv4
|
||||||
exit-script
|
exit-script
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -365,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
|
||||||
@@ -385,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
|
||||||
|
|
||||||
@@ -398,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
|
||||||
|
|
||||||
@@ -410,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
|
||||||
|
|
||||||
@@ -422,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
|
||||||
|
|
||||||
@@ -434,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
|
||||||
|
|
||||||
@@ -501,6 +517,7 @@ start() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v pveversion >/dev/null 2>&1; then
|
if ! command -v pveversion >/dev/null 2>&1; then
|
||||||
|
apt-get install -y whiptail
|
||||||
if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC UPDATE" --yesno "Support/Update functions for ${APP} LXC. Proceed?" 10 58); then
|
if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC UPDATE" --yesno "Support/Update functions for ${APP} LXC. Proceed?" 10 58); then
|
||||||
clear
|
clear
|
||||||
echo -e "⚠ User exited script \n"
|
echo -e "⚠ User exited script \n"
|
||||||
|
|||||||
Reference in New Issue
Block a user