This commit is contained in:
2026-05-14 14:33:40 -03:00
parent 60cb2e3cdb
commit 15859dc7f3
2 changed files with 11 additions and 11 deletions

View File

@@ -68,8 +68,8 @@ fi
case "$OS_ID" in case "$OS_ID" in
ubuntu|debian|linuxmint) ubuntu|debian|linuxmint)
PKG_UPDATE="apt-get update -qq" PKG_UPDATE="apt update -qq"
PKG_INSTALL="DEBIAN_FRONTEND=noninteractive apt-get install -y" PKG_INSTALL="DEBIAN_FRONTEND=noninteractive apt install -y"
PKG_DEPS="curl wget git rsync build-essential postgresql postgresql-contrib ca-certificates unzip openssh-client openssl iptables nftables" PKG_DEPS="curl wget git rsync build-essential postgresql postgresql-contrib ca-certificates unzip openssh-client openssl iptables nftables"
;; ;;
centos|rhel|rocky|almalinux) centos|rhel|rocky|almalinux)
@@ -83,9 +83,9 @@ case "$OS_ID" in
PKG_DEPS="curl wget git rsync gcc make postgresql-server postgresql-contrib ca-certificates unzip openssh-clients openssl iptables nftables" PKG_DEPS="curl wget git rsync gcc make postgresql-server postgresql-contrib ca-certificates unzip openssh-clients openssl iptables nftables"
;; ;;
*) *)
warn "Unknown OS '$OS_ID' — attempting apt-get" warn "Unknown OS '$OS_ID' — attempting apt…"
PKG_UPDATE="apt-get update -qq" PKG_UPDATE="apt update -qq"
PKG_INSTALL="DEBIAN_FRONTEND=noninteractive apt-get install -y" PKG_INSTALL="DEBIAN_FRONTEND=noninteractive apt install -y"
PKG_DEPS="curl wget git rsync build-essential postgresql postgresql-contrib ca-certificates unzip openssh-client openssl iptables nftables" PKG_DEPS="curl wget git rsync build-essential postgresql postgresql-contrib ca-certificates unzip openssh-client openssl iptables nftables"
;; ;;
esac esac

View File

@@ -84,9 +84,9 @@ install_git_if_missing() {
return 0 return 0
fi fi
warn "git is not installed. Trying to install it..." warn "git is not installed. Trying to install it..."
if command -v apt-get >/dev/null 2>&1; then if command -v apt >/dev/null 2>&1; then
apt-get update -qq apt update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y git ca-certificates DEBIAN_FRONTEND=noninteractive apt install -y git ca-certificates
elif command -v dnf >/dev/null 2>&1; then elif command -v dnf >/dev/null 2>&1; then
dnf install -y git ca-certificates dnf install -y git ca-certificates
elif command -v yum >/dev/null 2>&1; then elif command -v yum >/dev/null 2>&1; then
@@ -458,9 +458,9 @@ info "[0/7] Pre-flight checks..."
need_cmd python3 need_cmd python3
if ! command -v rsync >/dev/null 2>&1; then if ! command -v rsync >/dev/null 2>&1; then
warn "rsync is not installed. Trying to install it..." warn "rsync is not installed. Trying to install it..."
if command -v apt-get >/dev/null 2>&1; then if command -v apt >/dev/null 2>&1; then
apt-get update -qq apt update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y rsync DEBIAN_FRONTEND=noninteractive apt install -y rsync
elif command -v dnf >/dev/null 2>&1; then elif command -v dnf >/dev/null 2>&1; then
dnf install -y rsync dnf install -y rsync
elif command -v yum >/dev/null 2>&1; then elif command -v yum >/dev/null 2>&1; then