Fixes backup restore by recreating and resetting the MariaDB account RomM uses over the internal loopback connection, including backups that restore the database root credential.

This commit is contained in:
alextab93 committed 2026-08-13 02:23:58 -05:00
1 parent c4c708b301
commit 9a38264adf
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -24,6 +24,6 @@ until {
sleep 1
done
mariadb --protocol=socket --user=root --password="$root_password" --execute "CREATE USER IF NOT EXISTS 'romm'@'127.0.0.1' IDENTIFIED BY '$MARIADB_PASSWORD'; GRANT ALL PRIVILEGES ON romm.* TO 'romm'@'127.0.0.1'; FLUSH PRIVILEGES;"
mariadb --protocol=socket --user=root --password="$root_password" --execute "CREATE USER IF NOT EXISTS 'romm'@'127.0.0.1' IDENTIFIED BY '$MARIADB_PASSWORD'; ALTER USER 'romm'@'127.0.0.1' IDENTIFIED BY '$MARIADB_PASSWORD'; GRANT ALL PRIVILEGES ON romm.* TO 'romm'@'127.0.0.1'; FLUSH PRIVILEGES;"
wait "$server_pid"