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