mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-21 20:05:48 +02:00
switch to apt from apt-get
This commit is contained in:
@@ -10,8 +10,8 @@ if ! command -v curl &>/dev/null; then
|
|||||||
if [[ -f "/etc/alpine-release" ]]; then
|
if [[ -f "/etc/alpine-release" ]]; then
|
||||||
apk -U add curl >/dev/null 2>&1
|
apk -U add curl >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/dev/null 2>&1
|
apt install -y curl >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
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/core.func)
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
# Source: https://github.com/getarcaneapp/arcane
|
# Source: https://github.com/getarcaneapp/arcane
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/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)
|
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)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/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)
|
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)
|
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"
|
SERVICE_PATH="/etc/init.d/copyparty"
|
||||||
elif grep -qE 'ID=debian|ID=ubuntu' /etc/os-release; then
|
elif grep -qE 'ID=debian|ID=ubuntu' /etc/os-release; then
|
||||||
OS="Debian"
|
OS="Debian"
|
||||||
PKG_MANAGER="apt-get install -y"
|
PKG_MANAGER="apt install -y"
|
||||||
SERVICE_PATH="/etc/systemd/system/copyparty.service"
|
SERVICE_PATH="/etc/systemd/system/copyparty.service"
|
||||||
else
|
else
|
||||||
msg_error "Unsupported OS detected. Exiting."
|
msg_error "Unsupported OS detected. Exiting."
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/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)
|
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)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||||
|
|||||||
@@ -39,19 +39,20 @@ while true; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
msg_info "Setting up ${APP} Repository"
|
msg_info "Setting up ${APP} Repository"
|
||||||
$STD apt-get update
|
$STD apt update
|
||||||
$STD apt-get install -y curl
|
$STD apt install -y \
|
||||||
$STD apt-get install -y gnupg
|
curl \
|
||||||
|
gnupg
|
||||||
$STD bash -c "curl -fsSL https://install.crowdsec.net | bash"
|
$STD bash -c "curl -fsSL https://install.crowdsec.net | bash"
|
||||||
msg_ok "Setup ${APP} Repository"
|
msg_ok "Setup ${APP} Repository"
|
||||||
|
|
||||||
msg_info "Installing ${APP}"
|
msg_info "Installing ${APP}"
|
||||||
$STD apt-get update
|
$STD apt update
|
||||||
$STD apt-get install -y crowdsec
|
$STD apt install -y crowdsec
|
||||||
msg_ok "Installed ${APP}"
|
msg_ok "Installed ${APP}"
|
||||||
|
|
||||||
msg_info "Installing ${APP} Common Bouncer"
|
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 "Installed ${APP} Common Bouncer"
|
||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if [[ -f "/etc/alpine-release" ]]; then
|
|||||||
elif [[ -f "/etc/debian_version" ]]; then
|
elif [[ -f "/etc/debian_version" ]]; then
|
||||||
OS="Debian"
|
OS="Debian"
|
||||||
SERVICE_PATH="/etc/systemd/system/filebrowser.service"
|
SERVICE_PATH="/etc/systemd/system/filebrowser.service"
|
||||||
PKG_MANAGER="apt-get install -y"
|
PKG_MANAGER="apt install -y"
|
||||||
else
|
else
|
||||||
msg_error "Unsupported OS detected. Exiting."
|
msg_error "Unsupported OS detected. Exiting."
|
||||||
exit 238
|
exit 238
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ if [[ -f "/etc/alpine-release" ]]; then
|
|||||||
elif [[ -f "/etc/debian_version" ]]; then
|
elif [[ -f "/etc/debian_version" ]]; then
|
||||||
OS="Debian"
|
OS="Debian"
|
||||||
SERVICE_PATH="/etc/systemd/system/filebrowser.service"
|
SERVICE_PATH="/etc/systemd/system/filebrowser.service"
|
||||||
PKG_MANAGER="apt-get install -y"
|
PKG_MANAGER="apt install -y"
|
||||||
else
|
else
|
||||||
msg_error "Unsupported OS detected. Exiting."
|
msg_error "Unsupported OS detected. Exiting."
|
||||||
exit 238
|
exit 238
|
||||||
|
|||||||
@@ -27,8 +27,12 @@ IP="$LOCAL_IP"
|
|||||||
|
|
||||||
install_glances_debian() {
|
install_glances_debian() {
|
||||||
msg_info "Installing dependencies"
|
msg_info "Installing dependencies"
|
||||||
$STD apt-get update
|
$STD apt update
|
||||||
$STD apt-get install -y gcc lm-sensors wireless-tools curl
|
$STD apt install -y \
|
||||||
|
gcc \
|
||||||
|
lm-sensors \
|
||||||
|
wireless-tools \
|
||||||
|
curl
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Python + uv"
|
msg_info "Setting up Python + uv"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/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)
|
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)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
if ! command -v curl &>/dev/null; then
|
if ! command -v curl &>/dev/null; then
|
||||||
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
printf "\r\e[2K%b" '\033[93m Setup Source \033[m' >&2
|
||||||
apt-get update >/dev/null 2>&1
|
apt update >/dev/null 2>&1
|
||||||
apt-get install -y curl >/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)
|
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)
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ if [[ -f "/etc/alpine-release" ]]; then
|
|||||||
INSTALL_DIR="$INSTALL_DIR_ALPINE"
|
INSTALL_DIR="$INSTALL_DIR_ALPINE"
|
||||||
elif [[ -f "/etc/debian_version" ]]; then
|
elif [[ -f "/etc/debian_version" ]]; then
|
||||||
OS="Debian"
|
OS="Debian"
|
||||||
PKG_MANAGER_INSTALL="apt-get install -y"
|
PKG_MANAGER_INSTALL="apt install -y"
|
||||||
PKG_QUERY="dpkg -l"
|
PKG_QUERY="dpkg -l"
|
||||||
INSTALL_DIR="$INSTALL_DIR_DEBIAN"
|
INSTALL_DIR="$INSTALL_DIR_DEBIAN"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user