216 current 2025-10-10 04:43:06 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-10 20:10:21 -05:00
parent 08a3d16a83
commit 4bc8f56956

View File

@@ -82,16 +82,15 @@ in
ensureUsers = [ ensureUsers = [
{ {
name = "minecraft"; name = "minecraft";
password = sec."minecraft_recpro_db_passwd";
ensurePermissions = { "minecraft_recpro_db.*" = "ALL PRIVILEGES"; }; ensurePermissions = { "minecraft_recpro_db.*" = "ALL PRIVILEGES"; };
} }
]; ];
# initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' initialScript = pkgs.writeText "minecraft_recpro-init.sql" ''
# CREATE DATABASE IF NOT EXISTS minecraft_recpro; CREATE DATABASE IF NOT EXISTS minecraft_recpro;
# CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '${sec."minecraft_recpro_db_passwd"}'; CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '${sec."minecraft_recpro_db_passwd"}';
# GRANT ALL PRIVILEGES ON minecraft_recpro.* TO 'minecraft_recpro'@'localhost'; GRANT ALL PRIVILEGES ON minecraft_recpro.* TO 'minecraft_recpro'@'localhost';
# FLUSH PRIVILEGES; FLUSH PRIVILEGES;
# ''; '';
}; };
# open firewall # open firewall