Files
gaseous-server/build/mariadb.sh
2024-09-01 01:00:54 +10:00

9 lines
219 B
Bash

#!/bin/bash
# Wait for the service to start
while ! mysqladmin ping -h localhost --silent; do
sleep 1
done
# Set the root password
mariadb -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '$MARIADB_ROOT_PASSWORD';"