From 03099bf1f7daa80048d80745b896ae957cad5f7e Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 6 Sep 2022 13:40:41 -0700 Subject: [PATCH] [mc-clj] Need to agree to the EULA --- lib/fudo/minecraft-clj.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/fudo/minecraft-clj.nix b/lib/fudo/minecraft-clj.nix index 6c34567..b3971c3 100644 --- a/lib/fudo/minecraft-clj.nix +++ b/lib/fudo/minecraft-clj.nix @@ -205,10 +205,13 @@ in { admins-file = pkgs.writeText "${sanitizedName}-ops.txt" (concatStringsSep "\n" cfg.admins); props-file = genPropsFile worldOpts; + eula-file = + pkgs.writeText "mc-${sanitizedName}-eula.txt" "eula=true"; in pkgs.writeShellScript "mc-initialize-${sanitizedName}.sh" '' cp -f ${admins-file} ${stateDir}/ops.txt cp -f ${props-file} ${stateDir}/server.properties + cp -f ${eula-file} ${stateDir}/eula.txt chmod u+w ${stateDir}/server.properties '';