diff options
| author | David Lönnhager <david.l@mullvad.net> | 2020-11-10 13:43:10 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-11-19 01:35:21 +0100 |
| commit | 461dd7f6fd4909e598dfd190f846d1fcc68d6f6b (patch) | |
| tree | 3f56fda7fb64bf0ddfbc55007619697e3796a269 /dist-assets/pkg-scripts | |
| parent | 557484f7c7160fcbdf75c4f989c2108110245d79 (diff) | |
| download | mullvadvpn-461dd7f6fd4909e598dfd190f846d1fcc68d6f6b.tar.xz mullvadvpn-461dd7f6fd4909e598dfd190f846d1fcc68d6f6b.zip | |
Bundle API address cache with the app
Diffstat (limited to 'dist-assets/pkg-scripts')
| -rwxr-xr-x | dist-assets/pkg-scripts/preinstall | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dist-assets/pkg-scripts/preinstall b/dist-assets/pkg-scripts/preinstall index e03ca867a8..5b56185a58 100755 --- a/dist-assets/pkg-scripts/preinstall +++ b/dist-assets/pkg-scripts/preinstall @@ -77,9 +77,10 @@ if [ -d "$OLD_CACHE_DIR" ]; then rm -rf "$OLD_CACHE_DIR" fi -# Remove the existing relay list. -# There is a risk that it's incompatible with the format this version wants +# Remove the existing relay and API address cache lists. +# There is a risk that they're incompatible with the format this version wants rm "$NEW_CACHE_DIR/relays.json" || true +rm "$NEW_CACHE_DIR/api-ip-address.txt" || true # Notify the running daemon that we are going to kill it and replace it with a newer version. # This will make the daemon save it's state to a file and then lock the firewall to prevent |
