Creating script which migrates map database to new database for custom niceness.

This commit is contained in:
Roland 2025-01-01 10:59:28 -07:00
parent 28fbc8f197
commit 7324e83626
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
15 changed files with 126 additions and 57 deletions

View file

@ -17,7 +17,7 @@ set -x
systemctl stop wrolpi-api
# Delete the WROLPi API DB, if it exists.
sudo -u postgres dropdb wrolpi
sudo -u postgres dropuser wrolpi
sudo -iu postgres dropdb wrolpi
sudo -iu postgres dropuser wrolpi
/bin/bash /opt/wrolpi/scripts/initialize_api_db.sh