openvpn: fix start_path_instance function

Check the conffile existance (with .conf extension), before calling the
function 'start_path_instance'. This fixes errors with non-existing and
wrong spelling instances.

Signed-off-by: Dirk Brenken <dev@brenken.org>
- Update commit description
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Dirk Brenken 2024-02-19 14:54:08 +01:00 committed by Florian Eckert
parent c0da9fcbcb
commit fe736b2f8c
2 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openvpn
PKG_VERSION:=2.6.8
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_SOURCE_URL:=\
https://build.openvpn.net/downloads/releases/ \

View File

@ -281,7 +281,7 @@ start_service() {
if [ -n "$instance" ]; then
if [ "$instance_found" -gt 0 ]; then
start_uci_instance "$instance"
else
elif [ -f "${PATH_INSTANCE_DIR}/${instance}.conf" ]; then
start_path_instance "$instance"
fi
else
@ -299,4 +299,3 @@ start_service() {
service_triggers() {
procd_add_reload_trigger openvpn
}