Update build.func
This commit is contained in:
parent
3cc3c6d534
commit
29be0e9183
@ -1367,42 +1367,39 @@ start() {
|
|||||||
fi
|
fi
|
||||||
SPINNER_PID=""
|
SPINNER_PID=""
|
||||||
install_script
|
install_script
|
||||||
fi
|
else
|
||||||
|
|
||||||
if ! command -v pveversion >/dev/null 2>&1; then
|
|
||||||
if [ -f /etc/alpine-release ]; then
|
if [ -f /etc/alpine-release ]; then
|
||||||
echo "Running on Alpine Linux – minimal update process."
|
echo "Running on Alpine Linux – minimal update process."
|
||||||
update_script
|
update_script
|
||||||
return
|
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)
|
||||||
|
|
||||||
|
case "$CHOICE" in
|
||||||
|
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
|
||||||
|
log_message "INFO" "Update aborted."
|
||||||
|
exit_script
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
update_script
|
||||||
fi
|
fi
|
||||||
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)
|
|
||||||
|
|
||||||
case "$CHOICE" in
|
|
||||||
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
|
|
||||||
log_message "INFO" "Update aborted."
|
|
||||||
exit_script
|
|
||||||
exit
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
SPINNER_PID=""
|
|
||||||
update_script
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user