From f45e765b1c6b39c1956d110403b19be9717139e8 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Tue, 20 Feb 2018 22:39:46 +0100 Subject: [PATCH] Added ts3 license --- lgsm/functions/command_start.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index 6bad48141..eae0d2a11 100644 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -38,6 +38,14 @@ fn_start_teamspeak3(){ fi # Create lockfile date > "${rootdir}/${lockselfname}" + # Accept license + if [ ! -f "${executabledir}/.ts3server_license_accepted" ]; then + fn_script_log "Creating License acceptation file, which means you accept TeamSpeak License if you keep using it" + fn_print_info_nl "Creating License acceptation file, which means you accept TeamSpeak License if you keep using it" + fn_print_info_nl " * You can review the TeamSpeak License in ${executabledir}/LICENSE" + sleep 3 + touch "${executabledir}/.ts3server_license_accepted" + fi cd "${executabledir}" if [ "${ts3serverpass}" == "1" ]; then ./ts3server_startscript.sh start serveradmin_password="${newpassword}" inifile="${servercfgfullpath}" > /dev/null 2>&1