Ver código fonte

fix(mcserver): eula now correctly alters to true (#2286)

Daniel Gibbs 7 anos atrás
pai
commit
f0eda3aa34
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lgsm/functions/install_eula.sh

+ 1 - 1
lgsm/functions/install_eula.sh

@@ -39,7 +39,7 @@ if [ "${shortname}" == "ts3" ]; then
 	touch "${executabledir}/.ts3server_license_accepted"
 elif [ "${shortname}" == "mc" ]; then
 	touch "${serverfiles}/eula.txt"
-	sed -i "s/eula=false/eula=true/g" "${serverfiles}/eula.txt"
+	echo "eula=true" > "${serverfiles}/eula.txt"
 elif [ "${shortname}" == "ut" ]; then
 	:
 fi