Skip to content
Snippets Groups Projects
Verified Commit 27726f3b authored by Tomas Zak's avatar Tomas Zak
Browse files

packages: openvpn: hotfix for openvpn client's side

Hotfix openvpn for client's side, wrong path of configuration file were
provided.
This fixing commit: 4f7e6ba7
parent 1291ac76
Branches
Tags
1 merge request!694packages: openvpn: hotfix for openvpn client's side
Pipeline #121481 passed with stages
in 7 minutes and 56 seconds
From 2ab16ca528b72add92227140e5b6e84b7e83aeb8 Mon Sep 17 00:00:00 2001
From: Tomas Zak <tomas.zak@turris.com>
Date: Thu, 25 Jan 2024 11:32:22 +0100
Subject: [PATCH] packages: openvpn: hotfix for openvpn client's side
Hotfix openvpn for client's side, wrong path of configuration file were
provided.
This fixing commit: 4f7e6ba76544895a63bd7b9074ecf6fad8b16d74
---
net/openvpn/files/openvpn.init | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/openvpn/files/openvpn.init b/net/openvpn/files/openvpn.init
index c59406960..caa4d6c02 100644
--- a/net/openvpn/files/openvpn.init
+++ b/net/openvpn/files/openvpn.init
@@ -139,11 +139,11 @@ openvpn_get_credentials() {
openvpn_add_instance() {
local name="$1"
local dir="$2"
- local conf=$(basename "$3")
+ local conf="$3"
local security="$4"
local up="$5"
local down="$6"
- local client=$(grep -qEx "client|tls-client" "$dir/$conf" && echo 1)
+ local client=$(grep -qEx "client|tls-client" "$conf" && echo 1)
procd_open_instance "$name"
procd_set_param command "$PROG" \
--
2.43.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment