Fix path to easy-rsa tarball in checksum verification

This commit is contained in:
Stanislas Lange
2025-12-04 23:01:22 +01:00
committed by Stanislas
parent 39dd034717
commit cc834519ff

View File

@@ -760,7 +760,7 @@ function installOpenVPN() {
# Install the latest version of easy-rsa from source, if not already installed.
if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then
wget -O ~/easy-rsa.tgz "https://github.com/OpenVPN/easy-rsa/releases/download/v${EASYRSA_VERSION}/EasyRSA-${EASYRSA_VERSION}.tgz"
if ! echo "${EASYRSA_SHA256} ~/easy-rsa.tgz" | sha256sum -c; then
if ! echo "${EASYRSA_SHA256} $HOME/easy-rsa.tgz" | sha256sum -c; then
echo "SHA256 checksum verification failed for easy-rsa download!"
rm -f ~/easy-rsa.tgz
exit 1