Просмотр исходного кода

fix(untserver): remove mono-complete requirement and fix query port (#3039)

* mono-complete no longer required for unturned

* added query port for unturned
Daniel Gibbs 5 лет назад
Родитель
Сommit
d9690f85a8
2 измененных файлов с 2 добавлено и 7 удалено
  1. 0 6
      lgsm/functions/check_deps.sh
  2. 2 1
      lgsm/functions/info_parms.sh

+ 0 - 6
lgsm/functions/check_deps.sh

@@ -443,9 +443,6 @@ fn_deps_build_debian(){
 	# Unreal Tournament
 	elif [ "${shortname}" == "ut" ]; then
 		array_deps_required+=( unzip )
-	# Unturned
-	elif [ "${shortname}" == "unt" ]; then
-		array_deps_required+=( mono-complete )
 	# Wurm: Unlimited
 	elif [ "${shortname}" == "wurm" ]; then
 		array_deps_required+=( xvfb )
@@ -555,9 +552,6 @@ fn_deps_build_redhat(){
 	# Unreal Tournament
 	elif [ "${shortname}" == "ut" ]; then
 		array_deps_required+=( unzip )
-	# Unturned
-	elif [ "${shortname}" == "unt" ]; then
-		array_deps_required+=( mono-complete )
 	# Wurm: Unlimited
 	elif [ "${shortname}" == "wurm" ]; then
 		array_deps_required+=( xorg-x11-server-Xvfb )

+ 2 - 1
lgsm/functions/info_parms.sh

@@ -220,6 +220,7 @@ fn_info_parms_unreal3(){
 fn_info_parms_unturned(){
 	servername=${selfname:-"NOT SET"}
 	port=${port:-"0"}
+	queryport=$((port + 1))
 }
 
 fn_info_parms_ut(){
@@ -250,7 +251,7 @@ elif [ "${shortname}" == "fctr" ]; then
 elif [ "${shortname}" == "inss" ]; then
 	fn_info_parms_inss
 elif [ "${shortname}" == "jk2" ]; then
-	fn_info_parms_jk2	
+	fn_info_parms_jk2
 elif [ "${shortname}" == "kf2" ]; then
 	fn_info_parms_kf2
 elif [ "${shortname}" == "mohaa" ]; then