Stop AWG/WG service after uninstall (#738)

* Stop AWG service after uninstall
* Close Amnezia-service executable after install
* Close Amnezia application with service
This commit is contained in:
Mykola Baibuz 2024-04-14 14:08:14 +01:00 committed by GitHub
parent 030b0351a2
commit f588fe29db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 26 additions and 4 deletions

View file

@ -93,8 +93,9 @@ function checkProcessIsRunning(arg)
{
var cmdArgs = ["-c", arg];
var result = installer.execute("/bin/bash", cmdArgs);
var resultArg1 = Number(result[0])
if (resultArg1 >= 3) {
var lines = result[0].trim().split(/\n+/);
var resultArg1 = Number(lines[0])
if (resultArg1 >= 2) {
return true;
}
return false;