Browse Source

Merge pull request #1811 from GameServerManagers/hotfix/teamspeak-180220

Fix TeamSpeak License acceptation
pull/1825/head
UltimateByte 7 years ago
committed by GitHub
parent
commit
dca404eaeb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      lgsm/functions/command_start.sh
  2. 7
      lgsm/functions/install_ts3db.sh

8
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

7
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"

Loading…
Cancel
Save