From d6235f48f8b343dde76c16b85285766089304e5e Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Wed, 24 Jun 2020 07:22:17 +0200 Subject: openvpn: fix shell compare operator in openvpn.init Don't use bash syntax, because /bin/sh is used here. Signed-off-by: Martin Schiller [bump PKG_RELEASE] Signed-off-by: Adrian Schmutzler --- package/network/services/openvpn/Makefile | 2 +- package/network/services/openvpn/files/openvpn.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'package/network') diff --git a/package/network/services/openvpn/Makefile b/package/network/services/openvpn/Makefile index 9482e9ce39..40570fbdb6 100644 --- a/package/network/services/openvpn/Makefile +++ b/package/network/services/openvpn/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openvpn PKG_VERSION:=2.4.9 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_URL:=\ https://build.openvpn.net/downloads/releases/ \ diff --git a/package/network/services/openvpn/files/openvpn.init b/package/network/services/openvpn/files/openvpn.init index a454eb4ba0..487a2269e2 100644 --- a/package/network/services/openvpn/files/openvpn.init +++ b/package/network/services/openvpn/files/openvpn.init @@ -43,7 +43,7 @@ append_params() { IFS="$LIST_SEP" for v in $v; do [ -n "$v" ] && [ "$p" != "push" ] && append_param "$s" "$p" && echo " $v" >> "/var/etc/openvpn-$s.conf" - [ -n "$v" ] && [ "$p" == "push" ] && append_param "$s" "$p" && echo " \"$v\"" >> "/var/etc/openvpn-$s.conf" + [ -n "$v" ] && [ "$p" = "push" ] && append_param "$s" "$p" && echo " \"$v\"" >> "/var/etc/openvpn-$s.conf" done unset IFS done -- cgit v1.2.3