From 7ed49b92ff19205af276dee371174579c8b4c811 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 3 Mar 2021 22:59:03 +0100 Subject: [pkg] abort install if we running an old version stop if: - bitmask is running (we don't want to mess with the helper if the app is running) - we cannot stop the service for some reason. powershell gives more flexibility to stop services, but Remove-Service is not present in PS < 6, so we try to remove the service from the post-install too (the golang helper will complain about an eventlog registry key). this could probably be improved in the helper, but we'll be moving to the official openvpnserv2 service for 0.21.4. we might want to revisit the current helper for the firewall/killswitch. --- branding/scripts/getparam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'branding/scripts') diff --git a/branding/scripts/getparam b/branding/scripts/getparam index 235745d..005abb1 100755 --- a/branding/scripts/getparam +++ b/branding/scripts/getparam @@ -17,7 +17,7 @@ def getData(): configPath = os.path.join(vendorPath, 'vendor.conf') if not os.path.isfile(configPath): print("ERROR: path does not exist", configPath) - os.exit(1) + sys.exit(1) config = configparser.ConfigParser() config.read(configPath) defaultProvider = getDefaultProvider(config) -- cgit v1.2.3