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:
2 files changed
+7
-7
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user