in my setup openvpn-install.sh fails with something like
2026-04-15 07:20:37 [CHECKSUM] sha256sum: /easy-rsa.tgz: No such file or directory
/easy-rsa.tgz: FAILED open or read
sha256sum: WARNING: 1 listed file could not be read
2026-04-15 07:20:37 [CMD] rm -f /root/easy-rsa.tgz
the reason is very simple, $HOME environment variable is undefined but used in line 2719. This is not a corner case, I'm just creating a DigitalOcean Debian droplet and run the openvpn-install script from a script called with "--user-data-file".
My proposal is to be consistent in lines 2719-2727 and use only "~/easy-rsa.tgz", not mixing with "$HOME/easy-rsa.tgz". Thus, the line 2719 can be (dropping the quotes:
CHECKSUM_OUTPUT=$(echo "${EASYRSA_SHA256}" ~/easy-rsa.tgz | sha256sum -c 2>&1) || {
instead of actual
CHECKSUM_OUTPUT=$(echo "${EASYRSA_SHA256} $HOME/easy-rsa.tgz" | sha256sum -c 2>&1) || {
but there are of course other solutions.
in my setup openvpn-install.sh fails with something like
the reason is very simple, $HOME environment variable is undefined but used in line 2719. This is not a corner case, I'm just creating a DigitalOcean Debian droplet and run the openvpn-install script from a script called with "--user-data-file".
My proposal is to be consistent in lines 2719-2727 and use only "~/easy-rsa.tgz", not mixing with "$HOME/easy-rsa.tgz". Thus, the line 2719 can be (dropping the quotes:
CHECKSUM_OUTPUT=$(echo "${EASYRSA_SHA256}" ~/easy-rsa.tgz | sha256sum -c 2>&1) || {instead of actual
CHECKSUM_OUTPUT=$(echo "${EASYRSA_SHA256} $HOME/easy-rsa.tgz" | sha256sum -c 2>&1) || {but there are of course other solutions.