[mc-clj] Need to agree to the EULA

This commit is contained in:
niten 2022-09-06 13:40:41 -07:00
parent 77b5ecab8d
commit 03099bf1f7
1 changed files with 3 additions and 0 deletions

View File

@ -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
'';