diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index 6bad48141..2cccfa271 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 "Accepting ts3server license: ${executabledir}/LICENSE" + fn_print_info_nl "Accepting TeamSpeak license:" + fn_print_info_nl " * ${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 diff --git a/lgsm/functions/install_ts3db.sh b/lgsm/functions/install_ts3db.sh index c2bda5850..66edb34e5 100644 --- a/lgsm/functions/install_ts3db.sh +++ b/lgsm/functions/install_ts3db.sh @@ -55,6 +55,13 @@ else fn_print_warning_nl "./${selfname} auto-install is uses sqlite. For MariaDB/MySQL use ./${selfname} install" fi +## License +fn_script_log "Accepting ts3server license: ${executabledir}/LICENSE" +fn_print_info_nl "Accepting TeamSpeak license:" +fn_print_info_nl " * ${executabledir}/LICENSE" +sleep 3 +touch "${executabledir}/.ts3server_license_accepted" + ## Get privilege key echo "" echo "Getting privilege key"