Преглед изворни кода

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