Skip to content

Commit

Permalink
Fixing upgrade which deletes the wrong map blob. Fixing the port so t…
Browse files Browse the repository at this point in the history
…he old map database is deleted.
  • Loading branch information
lrnselfreliance committed Jan 12, 2025
1 parent cef4335 commit bd599e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/reset_map.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ set -x
systemctl stop renderd

# Delete old map database, if it exists.
sudo -iu postgres dropdb --port=5433 gis || :
sudo -iu postgres dropuser --port=5433 _renderd || :
sudo -iu postgres dropdb --port=5432 gis || :
sudo -iu postgres dropuser --port=5432 _renderd || :
# Delete new map database, it will be created again.
sudo -iu postgres dropdb --port=5433 gis || :
sudo -iu postgres dropuser --port=5433 _renderd || :
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [[ ! -f ${MAP_DB_BLOB} || ! -s ${MAP_DB_BLOB} ]]; then
fi
if [[ -f /opt/wrolpi-blobs/gis-map.dump.gz && -s ${MAP_DB_BLOB} ]]; then
# Remove old blob now that we have the new one.
rm ${MAP_DB_BLOB}
rm /opt/wrolpi-blobs/gis-map.dump.gz
fi

# Migrate map DB if necessary. Do this before repair because it will reset map if map db is empty.
Expand Down
2 changes: 1 addition & 1 deletion wrolpi/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15.1-beta
0.15.2-beta

0 comments on commit bd599e1

Please sign in to comment.