[mc-clj] Need to agree to the EULA
This commit is contained in:
parent
77b5ecab8d
commit
03099bf1f7
|
@ -205,10 +205,13 @@ in {
|
||||||
admins-file = pkgs.writeText "${sanitizedName}-ops.txt"
|
admins-file = pkgs.writeText "${sanitizedName}-ops.txt"
|
||||||
(concatStringsSep "\n" cfg.admins);
|
(concatStringsSep "\n" cfg.admins);
|
||||||
props-file = genPropsFile worldOpts;
|
props-file = genPropsFile worldOpts;
|
||||||
|
eula-file =
|
||||||
|
pkgs.writeText "mc-${sanitizedName}-eula.txt" "eula=true";
|
||||||
|
|
||||||
in pkgs.writeShellScript "mc-initialize-${sanitizedName}.sh" ''
|
in pkgs.writeShellScript "mc-initialize-${sanitizedName}.sh" ''
|
||||||
cp -f ${admins-file} ${stateDir}/ops.txt
|
cp -f ${admins-file} ${stateDir}/ops.txt
|
||||||
cp -f ${props-file} ${stateDir}/server.properties
|
cp -f ${props-file} ${stateDir}/server.properties
|
||||||
|
cp -f ${eula-file} ${stateDir}/eula.txt
|
||||||
chmod u+w ${stateDir}/server.properties
|
chmod u+w ${stateDir}/server.properties
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue