Переглянути джерело

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

Daniel Gibbs 7 роки тому
батько
коміт
f0eda3aa34
1 змінених файлів з 1 додано та 1 видалено
  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