Browse Source

remove lock after openvpn service stopped

HgO 2 weeks ago
parent
commit
282c31fd82
1 changed files with 2 additions and 1 deletions
  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
   ;;
 
   # ########## #