From 408d577461bcac3c7b0ab13dd4640feeb5721ea9 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Fri, 12 Dec 2025 23:17:12 +0100 Subject: [PATCH] feat: add missing dependencies for all supported distros (#1368) ## Summary - Add `tar` and DNS utilities (`dnsutils`/`bind-utils`/`bind`) to all supported distros - Ensures the script works reliably on minimal system images where these tools may not be pre-installed ## Changes by distro | Distro | Packages added | |--------|----------------| | debian/ubuntu | `tar`, `dnsutils` | | centos | `bind-utils` | | oracle | `bind-utils` | | amzn2023 | `tar`, `bind-utils` | | fedora | `tar`, `bind-utils` | | opensuse | `tar`, `bind-utils` | | arch | `tar`, `bind` | ## Why these packages? - **tar**: Required for extracting Easy-RSA `.tgz` archive - **dnsutils/bind-utils/bind**: Provides `dig` command used as fallback for public IP detection --- openvpn-install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index a84bb06..d3e3695 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -978,19 +978,19 @@ function installOpenVPN() { log_info "Installing OpenVPN and dependencies..." if [[ $OS =~ (debian|ubuntu) ]]; then - run_cmd "Installing OpenVPN" apt-get install -y openvpn iptables openssl curl ca-certificates + run_cmd "Installing OpenVPN" apt-get install -y openvpn iptables openssl curl ca-certificates tar dnsutils elif [[ $OS == 'centos' ]]; then - run_cmd "Installing OpenVPN" yum install -y openvpn iptables openssl ca-certificates curl tar 'policycoreutils-python*' + run_cmd "Installing OpenVPN" yum install -y openvpn iptables openssl ca-certificates curl tar bind-utils 'policycoreutils-python*' elif [[ $OS == 'oracle' ]]; then - run_cmd "Installing OpenVPN" yum install -y openvpn iptables openssl ca-certificates curl tar policycoreutils-python-utils + run_cmd "Installing OpenVPN" yum install -y openvpn iptables openssl ca-certificates curl tar bind-utils policycoreutils-python-utils elif [[ $OS == 'amzn2023' ]]; then - run_cmd "Installing OpenVPN" dnf install -y openvpn iptables openssl ca-certificates curl + run_cmd "Installing OpenVPN" dnf install -y openvpn iptables openssl ca-certificates curl tar bind-utils elif [[ $OS == 'fedora' ]]; then - run_cmd "Installing OpenVPN" dnf install -y openvpn iptables openssl ca-certificates curl policycoreutils-python-utils + run_cmd "Installing OpenVPN" dnf install -y openvpn iptables openssl ca-certificates curl tar bind-utils policycoreutils-python-utils elif [[ $OS == 'opensuse' ]]; then - run_cmd "Installing OpenVPN" zypper install -y openvpn iptables openssl ca-certificates curl + run_cmd "Installing OpenVPN" zypper install -y openvpn iptables openssl ca-certificates curl tar bind-utils elif [[ $OS == 'arch' ]]; then - run_cmd "Installing OpenVPN" pacman --needed --noconfirm -Syu openvpn iptables openssl ca-certificates curl + run_cmd "Installing OpenVPN" pacman --needed --noconfirm -Syu openvpn iptables openssl ca-certificates curl tar bind fi # Verify ChaCha20-Poly1305 compatibility if selected