Update build.func

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

View File

@ -1358,19 +1358,18 @@ 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
if [ -f /etc/alpine-release ]; then
echo "Running on Alpine Linux minimal update process."
update_script
else else
CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \ CHOICE=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
"Support/Update functions for ${APP} LXC. Choose an option:" \ "Support/Update functions for ${APP} LXC. Choose an option:" \
@ -1397,9 +1396,10 @@ start() {
exit exit
;; ;;
esac esac
SPINNER_PID=""
update_script update_script
fi fi
fi
} }
# This function collects user settings and integrates all the collected information. # This function collects user settings and integrates all the collected information.