diff --git a/modules/homelab/gameservers/minecraft_recpro/default.nix b/modules/homelab/gameservers/minecraft_recpro/default.nix index c5bec4b..f4b9bdc 100644 --- a/modules/homelab/gameservers/minecraft_recpro/default.nix +++ b/modules/homelab/gameservers/minecraft_recpro/default.nix @@ -81,16 +81,16 @@ in ensureDatabases = [ "minecraft_recpro_db" ]; ensureUsers = [ { - name = "minecraft_recpro"; + name = "minecraft"; ensurePermissions = { "minecraft_recpro_db.*" = "ALL PRIVILEGES"; }; } ]; - initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' - CREATE DATABASE IF NOT EXISTS minecraft_recpro_db; - CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY '${builtins.readFile /run/secrets/minecraft_recpro_db_passwd}'; - GRANT ALL PRIVILEGES ON minecraft_recpro.* TO 'minecraft_recpro'@'localhost'; - FLUSH PRIVILEGES; - ''; +# initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' +# CREATE DATABASE IF NOT EXISTS minecraft_recpro; +# 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'; +# FLUSH PRIVILEGES; +# ''; }; # open firewall