فهرست منبع

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