openvpn: fix auth_user_pass option

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 <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2026-03-05 09:08:34 +01:00
committed by Florian Eckert
parent a5b3ecfbcf
commit 9ccb8650fd

View File

@@ -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