Parcourir la source

remove lock after openvpn service stopped

HgO il y a 2 semaines
Parent
commit
282c31fd82
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      conf/ynh-vpnclient

+ 2 - 1
conf/ynh-vpnclient

@@ -226,7 +226,6 @@ case "$action" in
 
   stop)
     info "[vpnclient] Stopping..."
-    rm -f /tmp/.ynh-vpnclient-started
 
     if systemctl is-active -q openvpn@client.service; then
       info "Stopping OpenVPN service"
@@ -239,6 +238,8 @@ case "$action" in
         fi
       done
     fi
+    
+    rm -f /tmp/.ynh-vpnclient-started
   ;;
 
   # ########## #