From 658876e6d728007d6466eff396739dc7020f888a Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Tue, 27 Feb 2018 00:51:39 +0100 Subject: [PATCH] touch method for accepting license --- lgsm/functions/install_ts3db.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/install_ts3db.sh b/lgsm/functions/install_ts3db.sh index 79eb97013..eeb136382 100644 --- a/lgsm/functions/install_ts3db.sh +++ b/lgsm/functions/install_ts3db.sh @@ -62,7 +62,14 @@ echo "=================================" sleep 1 echo "IMPORANT! Save these details for later." sleep 1 +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 " * You can review the TeamSpeak License in ${executabledir}/LICENSE" + sleep 3 + touch "${executabledir}/.ts3server_license_accepted" +fi cd "${executabledir}" -./ts3server_startscript.sh start inifile=ts3-server.ini license_accepted=1 +./ts3server_startscript.sh start inifile=ts3-server.ini sleep 5 ./ts3server_startscript.sh stop