openvpn: fix shell compare operator in openvpn.init
authorMartin Schiller <ms@dev.tdt.de>
Wed, 24 Jun 2020 05:22:17 +0000 (07:22 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 9 Sep 2020 12:02:21 +0000 (14:02 +0200)
Don't use bash syntax, because /bin/sh is used here.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[bump PKG_RELEASE]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/openvpn.init

index 9482e9ce391e1c26c5e5ee55512b3948c1ead849..40570fbdb633a0f5e175ad0c80229c06a3c167dd 100644 (file)
@@ -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/ \
index a454eb4ba0197115881f60b3c096a741437e2978..487a2269e262308d260db44b8d3516ac8cdc9f93 100644 (file)
@@ -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