In RHEL 7 /etc/sysconfig/network is no longer used (still there but
empty). This results in the following error when openvpn starts:
Dec 20 09:01:25 localhost openvpn: /etc/rc.d/init.d/openvpn: line 94: [:
=: unary operator expected
---
distro/rpm/openvpn.init.d.rhel | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distro/rpm/openvpn.init.d.rhel
b/distro/rpm/openvpn.init.d.rhel
index cdf3e9de..bfde2216 100755
--- a/distro/rpm/openvpn.init.d.rhel
+++ b/distro/rpm/openvpn.init.d.rhel
@@ -91,7 +91,7 @@ work=/etc/openvpn
. /etc/sysconfig/network
# Check that networking is up.
-if [ ${NETWORKING} = "no" ]
+if [ "${NETWORKING}" = "no" ]
then
echo "Networking is down"
exit 0
--
2.11.0
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel