revert test

This commit is contained in:
CanbiZ 2025-03-26 08:26:27 +01:00
parent cb33ea26df
commit f76ce28be9

View File

@ -1356,22 +1356,47 @@ check_container_storage() {
} }
start() { start() {
LOGDIR="/usr/local/community-scripts/logs"
mkdir -p "$LOGDIR"
if [ -f /etc/alpine-release ]; then
echo "Running on Alpine Linux minimal update process."
update_script
return
fi
if command -v pveversion >/dev/null 2>&1; then if command -v pveversion >/dev/null 2>&1; then
if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then if ! (whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
clear clear
echo -e "⚠ User exited script \n" exit_script
exit exit
fi fi
SPINNER_PID=""
install_script install_script
fi else
CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
"Support/Update functions for ${APP} LXC. Choose an option:" \
12 60 3 \
"1" "YES (Silent Mode)" \
"2" "YES (Verbose Mode)" \
"3" "NO (Cancel Update)" --nocancel --default-item "1" 3>&1 1>&2 2>&3)
if ! command -v pveversion >/dev/null 2>&1; then case "$CHOICE" in
if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC UPDATE" --yesno "Support/Update functions for ${APP} LXC. Proceed?" 10 58); then 1)
VERB="no"
set_std_mode
log_message "INFO" "Update started (Silent Mode)"
;;
2)
VERB="yes"
set_std_mode
log_message "INFO" "Update started (Verbose Mode)"
;;
3)
clear clear
echo -e "⚠ User exited script \n" log_message "INFO" "Update aborted."
exit_script
exit exit
fi ;;
esac
SPINNER_PID="" SPINNER_PID=""
update_script update_script
fi fi