diff options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rwxr-xr-x | dist-assets/pkg-scripts/postinstall | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1893edffff..72c377ae00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,8 @@ Line wrap the file at 100 chars. Th #### macOS - Fix edge cases when window's arrow appeared misaligned and pointed to the wrong menubar item. +- Make the pkg installer kill any running GUI process after installation is done. Prevents + accidentally running an old GUI with a newer daemon. ### Changed - The "Buy more credit" button is changed to open a dedicated account login page instead of one 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 |
