mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Fixing upgrade which deletes the wrong map blob. Fixing the port so the old map database is deleted.
This commit is contained in:
parent
cef4335a53
commit
bd599e1b2b
3 changed files with 4 additions and 4 deletions
|
|
@ -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 || :
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0.15.1-beta
|
||||
0.15.2-beta
|
||||
Loading…
Add table
Add a link
Reference in a new issue