openvpn: fix auth_user_pass option
authorFlorian Eckert <redacted>
Thu, 5 Mar 2026 08:08:34 +0000 (09:08 +0100)
committerFlorian Eckert <redacted>
Wed, 11 Mar 2026 13:22:41 +0000 (14:22 +0100)
The variable 'auth_file' is not used in the following programm sequence.
It therefore only makes sense to add it as a call parameter via 'append'
when calling the the 'proto_run_commmand'.

Signed-off-by: Florian Eckert <redacted>
net/openvpn/files/lib/netifd/proto/openvpn.sh

index 7a8da999bdb326a5541f2ca435460252064c604f..b94a80d573918b1f7f0678b15ee38c43a25a9125 100755 (executable)
@@ -139,7 +139,7 @@ proto_openvpn_setup() {
                umask 022
                append exec_params " --auth-user-pass $auth_file"
        elif [ -n "$auth_user_pass" ]; then
-               auth_file="$auth_user_pass"
+               append exec_params " --auth-user-pass $auth_user_pass"
        fi
 
        # shellcheck disable=SC2154
git clone https://git.99rst.org/PROJECT