From d5d336698ec68fa297056cb603853fa930e4bb26 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 1 Aug 2026 22:20:27 +0200 Subject: [PATCH] switch to apt from apt-get --- tools/addon/adguardhome-sync.sh | 4 ++-- tools/addon/arcane.sh | 4 ++-- tools/addon/copyparty.sh | 6 +++--- tools/addon/cronmaster.sh | 4 ++-- tools/addon/crowdsec.sh | 13 +++++++------ tools/addon/filebrowser-quantum.sh | 2 +- tools/addon/filebrowser.sh | 2 +- tools/addon/glances.sh | 8 ++++++-- tools/addon/immich-public-proxy.sh | 4 ++-- tools/addon/jellystat.sh | 4 ++-- tools/addon/phpmyadmin.sh | 2 +- 11 files changed, 29 insertions(+), 24 deletions(-) diff --git a/tools/addon/adguardhome-sync.sh b/tools/addon/adguardhome-sync.sh index 1c2b397e2..72462e8b0 100644 --- a/tools/addon/adguardhome-sync.sh +++ b/tools/addon/adguardhome-sync.sh @@ -10,8 +10,8 @@ if ! command -v curl &>/dev/null; then if [[ -f "/etc/alpine-release" ]]; then apk -U add curl >/dev/null 2>&1 else - apt-get update >/dev/null 2>&1 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 fi fi source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) diff --git a/tools/addon/arcane.sh b/tools/addon/arcane.sh index ba5653eed..c2cbd4830 100644 --- a/tools/addon/arcane.sh +++ b/tools/addon/arcane.sh @@ -6,8 +6,8 @@ # 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-get update >/dev/null 2>&1 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 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/copyparty.sh b/tools/addon/copyparty.sh index d3c8d7a26..3bc325b30 100644 --- a/tools/addon/copyparty.sh +++ b/tools/addon/copyparty.sh @@ -7,8 +7,8 @@ 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 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 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) @@ -45,7 +45,7 @@ if [[ -f "/etc/alpine-release" ]]; then SERVICE_PATH="/etc/init.d/copyparty" elif grep -qE 'ID=debian|ID=ubuntu' /etc/os-release; then OS="Debian" - PKG_MANAGER="apt-get install -y" + PKG_MANAGER="apt install -y" SERVICE_PATH="/etc/systemd/system/copyparty.service" else msg_error "Unsupported OS detected. Exiting." diff --git a/tools/addon/cronmaster.sh b/tools/addon/cronmaster.sh index f6c9647fc..d46c57fa9 100644 --- a/tools/addon/cronmaster.sh +++ b/tools/addon/cronmaster.sh @@ -7,8 +7,8 @@ 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 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 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 97618132c..d6604a00d 100644 --- a/tools/addon/crowdsec.sh +++ b/tools/addon/crowdsec.sh @@ -39,19 +39,20 @@ while true; do done msg_info "Setting up ${APP} Repository" -$STD apt-get update -$STD apt-get install -y curl -$STD apt-get install -y gnupg +$STD apt update +$STD apt install -y \ + curl \ + gnupg $STD bash -c "curl -fsSL https://install.crowdsec.net | bash" msg_ok "Setup ${APP} Repository" msg_info "Installing ${APP}" -$STD apt-get update -$STD apt-get install -y crowdsec +$STD apt update +$STD apt install -y crowdsec msg_ok "Installed ${APP}" msg_info "Installing ${APP} Common Bouncer" -$STD apt-get install -y crowdsec-firewall-bouncer-iptables +$STD apt install -y crowdsec-firewall-bouncer-iptables msg_ok "Installed ${APP} Common Bouncer" msg_ok "Completed successfully!\n" diff --git a/tools/addon/filebrowser-quantum.sh b/tools/addon/filebrowser-quantum.sh index 43212497d..5cf62661d 100644 --- a/tools/addon/filebrowser-quantum.sh +++ b/tools/addon/filebrowser-quantum.sh @@ -53,7 +53,7 @@ if [[ -f "/etc/alpine-release" ]]; then elif [[ -f "/etc/debian_version" ]]; then OS="Debian" SERVICE_PATH="/etc/systemd/system/filebrowser.service" - PKG_MANAGER="apt-get install -y" + PKG_MANAGER="apt install -y" else msg_error "Unsupported OS detected. Exiting." exit 238 diff --git a/tools/addon/filebrowser.sh b/tools/addon/filebrowser.sh index 037b5a97e..8ed767504 100644 --- a/tools/addon/filebrowser.sh +++ b/tools/addon/filebrowser.sh @@ -51,7 +51,7 @@ if [[ -f "/etc/alpine-release" ]]; then elif [[ -f "/etc/debian_version" ]]; then OS="Debian" SERVICE_PATH="/etc/systemd/system/filebrowser.service" - PKG_MANAGER="apt-get install -y" + PKG_MANAGER="apt install -y" else msg_error "Unsupported OS detected. Exiting." exit 238 diff --git a/tools/addon/glances.sh b/tools/addon/glances.sh index 496f6fb22..b9b06a344 100644 --- a/tools/addon/glances.sh +++ b/tools/addon/glances.sh @@ -27,8 +27,12 @@ IP="$LOCAL_IP" install_glances_debian() { msg_info "Installing dependencies" - $STD apt-get update - $STD apt-get install -y gcc lm-sensors wireless-tools curl + $STD apt update + $STD apt install -y \ + gcc \ + lm-sensors \ + wireless-tools \ + curl msg_ok "Installed dependencies" msg_info "Setting up Python + uv" diff --git a/tools/addon/immich-public-proxy.sh b/tools/addon/immich-public-proxy.sh index b87624497..ad22d5ab5 100644 --- a/tools/addon/immich-public-proxy.sh +++ b/tools/addon/immich-public-proxy.sh @@ -7,8 +7,8 @@ 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 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 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/jellystat.sh b/tools/addon/jellystat.sh index 6d31a3272..36d451416 100644 --- a/tools/addon/jellystat.sh +++ b/tools/addon/jellystat.sh @@ -7,8 +7,8 @@ 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 - apt-get install -y curl >/dev/null 2>&1 + apt update >/dev/null 2>&1 + apt install -y curl >/dev/null 2>&1 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/phpmyadmin.sh b/tools/addon/phpmyadmin.sh index 72f20c7f2..41b11c2a0 100644 --- a/tools/addon/phpmyadmin.sh +++ b/tools/addon/phpmyadmin.sh @@ -34,7 +34,7 @@ if [[ -f "/etc/alpine-release" ]]; then INSTALL_DIR="$INSTALL_DIR_ALPINE" elif [[ -f "/etc/debian_version" ]]; then OS="Debian" - PKG_MANAGER_INSTALL="apt-get install -y" + PKG_MANAGER_INSTALL="apt install -y" PKG_QUERY="dpkg -l" INSTALL_DIR="$INSTALL_DIR_DEBIAN" else