Parcourir la source

[fix] Stupid error

ljf (zamentur) il y a 3 ans
Parent
commit
706d676265
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      conf/ynh-vpnclient

+ 1 - 1
conf/ynh-vpnclient

@@ -385,7 +385,7 @@ case "${1}" in
       exit 0
       exit 0
     fi
     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
     then
         critical "Failed to start OpenVPN client : user certificate expired"
         critical "Failed to start OpenVPN client : user certificate expired"
     fi
     fi