From e27aa43a720a2989485f56bbbfc566ac05cc8643 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Sat, 20 Aug 2016 16:46:44 +0200 Subject: [PATCH] Fixed EULA installation --- lgsm/functions/install_minecraft_eula.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/install_minecraft_eula.sh b/lgsm/functions/install_minecraft_eula.sh index a95fe8e1d..410e283b4 100644 --- a/lgsm/functions/install_minecraft_eula.sh +++ b/lgsm/functions/install_minecraft_eula.sh @@ -11,6 +11,8 @@ sleep 1 echo "You are required to accept the EULA:" echo "https://account.mojang.com/documents/minecraft_eula" +echo "eula=false" > "${filesdir}/eula.txt" + if [ -z "${autoinstall}" ]; then echo "By continuing you are indicating your agreement to the EULA." echo "" @@ -28,4 +30,4 @@ echo "" sleep 5 fi -sed -i "s/\"eula=false\"/\"eula=true\"/g" serverfiles/eula.txt \ No newline at end of file +sed -i "s/eula=false/eula=true/g" "${filesdir}/eula.txt" \ No newline at end of file