openvpn: change tmp-dir to /tmp

This allows openvpn to create any temp files after
user or group change at exec time.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-03-12 18:42:38 +01:00
committed by Hannu Nyman
parent ef3ffde899
commit 56453de58c
@@ -128,7 +128,7 @@ proto_openvpn_setup() {
append exec_params "--cd $cd_dir"
append exec_params "--status /var/run/openvpn.$config.status"
append exec_params "--syslog openvpn_$config"
append exec_params "--tmp-dir /var/run"
append exec_params "--tmp-dir /tmp"
[ -n "$config_file" ] && append exec_params "--config \"$config_file\""
json_get_var ALLOW_DEPRECATED allow_deprecated