check against null, not empty string

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-20 10:12:00 +01:00
parent e99fba0192
commit 8eb44716e9
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -472,8 +472,8 @@ in
echo "eula=true" > eula.txt
# Update the server properties
cat ${serverProperties} > server.properties
${if cfg.properties.rcon-password-file != "" then ''
echo "rcon.password=$(cat ${cfg.properties.rcon-password-file})" >> server.properties
${if cfg.properties.rcon-password-file != null then ''
echo "rcon.password=$(cat ${builtins.toString cfg.properties.rcon-password-file})" >> server.properties
'' else "" }
# Update the whitelist
cat ${whitelistJson} > whitelist.json