| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/bin/bash
- # LinuxGSM install_eula.sh module
- # Author: Daniel Gibbs
- # Contributors: http://linuxgsm.com/contrib
- # Website: https://linuxgsm.com
- # Description: Gets user to accept the EULA.
- functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
- if [ "${shortname}" == "ts3" ]; then
- eulaurl="https://www.teamspeak.com/en/privacy-and-terms"
- elif [ "${shortname}" == "mc" ]; then
- eulaurl="https://account.mojang.com/documents/minecraft_eula"
- elif [ "${shortname}" == "ut" ]; then
- eulaurl="https://www.epicgames.com/unrealtournament/unreal-tournament-pre-alpha-test-development-build-eula"
- fi
- echo -e ""
- echo -e "${lightyellow}Accept ${gamename} EULA${default}"
- echo -e "================================="
- fn_sleep_time
- echo -e "You are required to accept the EULA:"
- echo -e "${eulaurl}"
- echo -e ""
- if [ -z "${autoinstall}" ]; then
- echo -e "By continuing you are indicating your agreement to the EULA."
- echo -e ""
- if ! fn_prompt_yn "Continue?" Y; then
- exitcode=0
- core_exit.sh
- fi
- elif [ "${commandname}" == "START" ]; then
- fn_print_info "By continuing you are indicating your agreement to the EULA."
- echo -e ""
- sleep 5
- else
- echo -e "By using auto-install you are indicating your agreement to the EULA."
- echo -e ""
- sleep 5
- fi
- if [ "${shortname}" == "ts3" ]; then
- touch "${executabledir}/.ts3server_license_accepted"
- elif [ "${shortname}" == "mc" ]; then
- touch "${serverfiles}/eula.txt"
- echo -e "eula=true" > "${serverfiles}/eula.txt"
- elif [ "${shortname}" == "ut" ]; then
- :
- fi
|