فهرست منبع

Added unreal tournament eula

Daniel Gibbs 9 سال پیش
والد
کامیت
5b325bdcf8
2فایلهای تغییر یافته به همراه38 افزوده شده و 0 حذف شده
  1. 5 0
      lgsm/functions/core_functions.sh
  2. 33 0
      lgsm/functions/install_unreal_tournament_eula.sh

+ 5 - 0
lgsm/functions/core_functions.sh

@@ -510,6 +510,11 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 }
 
+install_unreal_tournament_eula.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 install_retry.sh(){
 functionfile="${FUNCNAME}"
 fn_fetch_function

+ 33 - 0
lgsm/functions/install_unreal_tournament_eula.sh

@@ -0,0 +1,33 @@
+#!/bin/bash
+# LGSM install_unreal_tournament_eula.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Gets user to accept the EULA.
+
+echo ""
+echo "Accept ${gamename} EULA"
+echo "================================="
+sleep 1
+echo "You are required to accept the EULA:"
+echo "https://www.epicgames.com/unrealtournament/unreal-tournament-pre-alpha-test-development-build-eula/"
+
+echo "eula=false" > "${filesdir}/eula.txt"
+
+if [ -z "${autoinstall}" ]; then
+echo "By continuing you are indicating your agreement to the EULA."
+echo ""
+	while true; do
+		read -e -i "y" -p "Continue [Y/n]" yn
+		case $yn in
+		[Yy]* ) break;;
+		[Nn]* ) core_exit.sh;;
+		* ) echo "Please answer yes or no.";;
+		esac
+	done
+else
+echo "By using auto-install you are indicating your agreement to the EULA."
+echo ""
+	sleep 5
+fi
+
+sed -i "s/eula=false/eula=true/g" "${filesdir}/eula.txt"