Sfoglia il codice sorgente

Fixed EULA installation

Marvin Lehmann 9 anni fa
parent
commit
e27aa43a72
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      lgsm/functions/install_minecraft_eula.sh

+ 3 - 1
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
+sed -i "s/eula=false/eula=true/g" "${filesdir}/eula.txt"