diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-09-06 21:01:08 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-09-07 14:45:56 +0200 |
| commit | 09b52755c3b5143cd8ee6f364e265283a34bf8ea (patch) | |
| tree | dd8a4fbd8c1ad5b22b20e528a7e55570216439e9 /dist-assets/pkg-scripts/postinstall | |
| parent | b7b2091ccb77801db8e274715286e0df1eee8782 (diff) | |
| download | mullvadvpn-09b52755c3b5143cd8ee6f364e265283a34bf8ea.tar.xz mullvadvpn-09b52755c3b5143cd8ee6f364e265283a34bf8ea.zip | |
Make macOS postinstall script kill any running GUI
Diffstat (limited to 'dist-assets/pkg-scripts/postinstall')
| -rwxr-xr-x | dist-assets/pkg-scripts/postinstall | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dist-assets/pkg-scripts/postinstall b/dist-assets/pkg-scripts/postinstall index fd3752ae3b..e213c73b62 100755 --- a/dist-assets/pkg-scripts/postinstall +++ b/dist-assets/pkg-scripts/postinstall @@ -42,6 +42,8 @@ DAEMON_PLIST=$(cat <<-EOM EOM ) +pkill -x "Mullvad VPN" || echo "Unable to kill GUI, not running?" +sleep 1 launchctl unload -w $DAEMON_PLIST_PATH echo "$DAEMON_PLIST" > $DAEMON_PLIST_PATH launchctl load -w $DAEMON_PLIST_PATH |
