From 15bf851f335505a12d6d58d00909620aa3e316d2 Mon Sep 17 00:00:00 2001 From: blake Date: Fri, 10 Oct 2025 21:42:18 -0500 Subject: [PATCH] 234 current 2025-10-10 21:36:10 25.05.20251006.20c4598 6.12.50 * --- modules/homelab/gameservers/minecraft_recpro/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/homelab/gameservers/minecraft_recpro/default.nix b/modules/homelab/gameservers/minecraft_recpro/default.nix index 91a0b58..8767749 100644 --- a/modules/homelab/gameservers/minecraft_recpro/default.nix +++ b/modules/homelab/gameservers/minecraft_recpro/default.nix @@ -86,7 +86,8 @@ in } ]; initialScript = pkgs.writeText "minecraft_recpro-init.sql" '' - CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY 'IKNOWTHISISBADIJUSTNEEDITTOWORK'; + SET @passwd = LOAD_FILE('/run/secrets/minecraft_recpro_db_passwd'); + CREATE USER IF NOT EXISTS 'minecraft_recpro'@'localhost' IDENTIFIED BY @passwd; GRANT ALL PRIVILEGES ON minecraft_recpro_db.* TO 'minecraft_recpro'@'localhost'; FLUSH PRIVILEGES; '';