Răsfoiți Sursa

Added ts3 license

UltimateByte 8 ani în urmă
părinte
comite
f45e765b1c
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      lgsm/functions/command_start.sh

+ 8 - 0
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