diff --git a/tools/addon/arcane.sh b/tools/addon/arcane.sh index 2b0dc5346..02b2968cd 100644 --- a/tools/addon/arcane.sh +++ b/tools/addon/arcane.sh @@ -6,8 +6,13 @@ # Source: https://github.com/getarcaneapp/arcane if ! command -v curl &>/dev/null; then printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2 - apt update >/dev/null 2>&1 - apt install -y curl >/dev/null 2>&1 + if [[ -f /etc/alpine-release ]]; then + apk update >/dev/null 2>&1 + apk add --no-cache curl >/dev/null 2>&1 + else + apt-get update >/dev/null 2>&1 + apt-get install -y curl >/dev/null 2>&1 + fi fi source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func) diff --git a/tools/addon/crowdsec.sh b/tools/addon/crowdsec.sh index d6604a00d..ff1453553 100644 --- a/tools/addon/crowdsec.sh +++ b/tools/addon/crowdsec.sh @@ -20,13 +20,10 @@ trap 'error_handler' ERR # Initialize all core functions (colors, formatting, icons, STD mode) load_functions +require_debian_like header_info - -if command -v pveversion >/dev/null 2>&1; then - msg_error "Can't Install on Proxmox" - exit 1 -fi +confirm_not_pve_host while true; do echo -n "${TAB}This will Install ${APP}. Proceed (y/n)? " diff --git a/tools/addon/komodo.sh b/tools/addon/komodo.sh index 287975911..f48fe1d00 100644 --- a/tools/addon/komodo.sh +++ b/tools/addon/komodo.sh @@ -6,8 +6,13 @@ # Source: https://komo.do/ | Github: https://github.com/moghtech/komodo if ! command -v curl &>/dev/null; then printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2 - apt-get update >/dev/null 2>&1 || apk update >/dev/null 2>&1 - apt-get install -y curl >/dev/null 2>&1 || apk add --no-cache curl >/dev/null 2>&1 + if [[ -f /etc/alpine-release ]]; then + apk update >/dev/null 2>&1 + apk add --no-cache curl >/dev/null 2>&1 + else + apt-get update >/dev/null 2>&1 + apt-get install -y curl >/dev/null 2>&1 + fi fi source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func) diff --git a/tools/addon/olivetin.sh b/tools/addon/olivetin.sh index bca4bdaa7..69bd51a27 100644 --- a/tools/addon/olivetin.sh +++ b/tools/addon/olivetin.sh @@ -20,6 +20,7 @@ trap 'error_handler' ERR # Initialize all core functions (colors, formatting, icons, STD mode) load_functions +require_debian_like header_info ensure_usr_local_bin_persist diff --git a/tools/addon/pyenv.sh b/tools/addon/pyenv.sh index 1cc3b37d0..2ad53f19a 100644 --- a/tools/addon/pyenv.sh +++ b/tools/addon/pyenv.sh @@ -20,13 +20,10 @@ trap 'error_handler' ERR # Initialize all core functions (colors, formatting, icons, STD mode) load_functions +require_debian_like header_info - -if command -v pveversion >/dev/null 2>&1; then - msg_error "Can't Install on Proxmox " - exit 1 -fi +confirm_not_pve_host get_lxc_ip msg_info "Installing ${APP}" $STD apt update diff --git a/tools/addon/webmin.sh b/tools/addon/webmin.sh index 38ea6e202..f30e83589 100644 --- a/tools/addon/webmin.sh +++ b/tools/addon/webmin.sh @@ -20,6 +20,7 @@ trap 'error_handler' ERR # Initialize all core functions (colors, formatting, icons, STD mode) load_functions +require_debian_like header_info