Update build.func

This commit is contained in:
CanbiZ 2025-03-25 15:44:27 +01:00
parent 9831033444
commit d22b51081f

View File

@ -1358,47 +1358,47 @@ check_container_storage() {
start() { start() {
LOGDIR="/usr/local/community-scripts/logs" LOGDIR="/usr/local/community-scripts/logs"
mkdir -p "$LOGDIR" 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 "[dev] 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
exit_script exit_script
exit exit
fi fi
SPINNER_PID=""
install_script install_script
else else
if [ -f /etc/alpine-release ]; then CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
echo "Running on Alpine Linux minimal update process." "Support/Update functions for ${APP} LXC. Choose an option:" \
update_script 12 60 3 \
else "1" "YES (Silent Mode)" \
CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \ "2" "YES (Verbose Mode)" \
"Support/Update functions for ${APP} LXC. Choose an option:" \ "3" "NO (Cancel Update)" --nocancel --default-item "1" 3>&1 1>&2 2>&3)
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)
case "$CHOICE" in case "$CHOICE" in
1) 1)
VERB="no" VERB="no"
set_std_mode set_std_mode
log_message "INFO" "Update started (Silent Mode)" log_message "INFO" "Update started (Silent Mode)"
;; ;;
2) 2)
VERB="yes" VERB="yes"
set_std_mode set_std_mode
log_message "INFO" "Update started (Verbose Mode)" log_message "INFO" "Update started (Verbose Mode)"
;; ;;
3) 3)
clear clear
log_message "INFO" "Update aborted." log_message "INFO" "Update aborted."
exit_script exit_script
exit exit
;; ;;
esac esac
update_script
fi SPINNER_PID=""
update_script
fi fi
} }