diff --git a/misc/build.func b/misc/build.func index b44526a5f..ed5879673 100644 --- a/misc/build.func +++ b/misc/build.func @@ -788,7 +788,11 @@ start() { fi if ! command -v pveversion >/dev/null 2>&1; then - apt-get install -y whiptail + if [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then + apt-get install -y whiptail &>/dev/null + elif [ -f /etc/alpine-release ]; then + apk add --no-cache whiptail &>/dev/null + fi if ! (whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC UPDATE" --yesno "Support/Update functions for ${APP} LXC. Proceed?" 10 58); then clear exit_script