Browse Source

[fix] Stupid error

ljf (zamentur) 3 years ago
parent
commit
53acae6dc3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conf/ynh-vpnclient

+ 1 - 1
conf/ynh-vpnclient

@@ -385,7 +385,7 @@ case "${1}" in
       exit 0
     fi
 
-    if [ ! -e /etc/openvpn/keys/user.crt ] && ! cat /etc/openvpn/keys/user.crt | openssl x509 -noout -checkend 0 >/dev/null
+    if [ -e /etc/openvpn/keys/user.crt ] && ! cat /etc/openvpn/keys/user.crt | openssl x509 -noout -checkend 0 >/dev/null
     then
         critical "Failed to start OpenVPN client : user certificate expired"
     fi