Daniel Gibbs 4 лет назад
Родитель
Сommit
67e1f3f678

+ 0 - 3
.github/pr-labeler.yml

@@ -1,3 +0,0 @@
-feature: ['feature/*', 'feat/*']
-hotfix: hotfix/*
-release: release/*

+ 0 - 14
.github/workflows/pr-labeler.yml

@@ -1,14 +0,0 @@
-name: PR Labeler
-on:
-  pull_request:
-    types: [opened, edited, closed]
-
-jobs:
-  pr-labeler:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: TimonVS/pr-labeler-action@v3
-        with:
-          configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 1 - 7
lgsm/config-default/config-lgsm/avserver/_default.cfg

@@ -10,14 +10,8 @@
 
 
 ## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
 ## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
 
 
-# https://steamidfinder.com
-adminsteamid=""
-if [ -n "${adminsteamid}" ]; then
-	admincmd="--admin ${adminsteamid}"
-fi
-
 ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
 ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
-startparameters="--galaxy-name ${selfname} --ip ${ip} --datapath ${avdatapath} ${admincmd}"
+startparameters="--galaxy-name ${selfname} --ip ${ip} --datapath ${avdatapath}"
 
 
 #### LinuxGSM Settings ####
 #### LinuxGSM Settings ####
 
 

+ 1 - 1
lgsm/data/almalinux-8.csv

@@ -62,7 +62,7 @@ mcb,libnsl
 mh
 mh
 mohaa,compat-libstdc++-33.i686
 mohaa,compat-libstdc++-33.i686
 mom
 mom
-mta
+mta,ncurses-compat-libs
 mumble
 mumble
 nd
 nd
 nmrih,ncurses-libs.i686
 nmrih,ncurses-libs.i686

+ 2 - 2
lgsm/data/centos-7.csv

@@ -1,4 +1,4 @@
-all,bc,binutils,bzip2,bzip2,cpio,curl,epel-release,file,glibc.i686,gzip,hostname,jq,libstdc++.i686,nmap-ncat,python36,tar,tmux,unzip,util-linux,wget,xz
+all,bc,binutils,bzip2,bzip2,cpio,curl,epel-release,file,glibc.i686,gzip,hostname,jq,libstdc++.i686,nmap-ncat,python3,tar,tmux,unzip,util-linux,wget,xz
 steamcmd,glibc.i686,libstdc++.i686
 steamcmd,glibc.i686,libstdc++.i686
 ac
 ac
 ahl
 ahl
@@ -62,7 +62,7 @@ mcb,libnsl
 mh
 mh
 mohaa,compat-libstdc++-33.i686
 mohaa,compat-libstdc++-33.i686
 mom
 mom
-mta
+mta,ncurses-libs
 mumble
 mumble
 nd
 nd
 nmrih,ncurses-libs.i686
 nmrih,ncurses-libs.i686

+ 1 - 1
lgsm/data/centos-8.csv

@@ -62,7 +62,7 @@ mcb,libnsl
 mh
 mh
 mohaa,compat-libstdc++-33.i686
 mohaa,compat-libstdc++-33.i686
 mom
 mom
-mta
+mta,ncurses-compat-libs
 mumble
 mumble
 nd
 nd
 nmrih,ncurses-libs.i686
 nmrih,ncurses-libs.i686

+ 1 - 1
lgsm/data/debian-10.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 1 - 1
lgsm/data/debian-11.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 1 - 1
lgsm/data/debian-9.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 1 - 1
lgsm/data/rocky-8.csv

@@ -62,7 +62,7 @@ mcb,libnsl
 mh
 mh
 mohaa,compat-libstdc++-33.i686
 mohaa,compat-libstdc++-33.i686
 mom
 mom
-mta
+mta,ncurses-compat-libs
 mumble
 mumble
 nd
 nd
 nmrih,ncurses-libs.i686
 nmrih,ncurses-libs.i686

+ 1 - 1
lgsm/data/ubuntu-18.04.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 1 - 1
lgsm/data/ubuntu-20.04.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 1 - 1
lgsm/data/ubuntu-21.04.csv

@@ -62,7 +62,7 @@ mcb
 mh
 mh
 mohaa,libstdc++5:i386
 mohaa,libstdc++5:i386
 mom
 mom
-mta
+mta,libncursesw5
 mumble
 mumble
 nd
 nd
 nmrih,libtinfo5:i386
 nmrih,libtinfo5:i386

+ 5 - 5
lgsm/functions/alert_mailgun.sh

@@ -13,7 +13,7 @@ else
 	mailgunapiurl="https://api.mailgun.net"
 	mailgunapiurl="https://api.mailgun.net"
 fi
 fi
 
 
-fn_print_dots "Sending Email alert: Mailgun: ${email}"
+fn_print_dots "Sending Email alert: Mailgun: ${mailgunemail}"
 
 
 mailgunsend=$(curl --connect-timeout 10 -s --user "api:${mailguntoken}" \
 mailgunsend=$(curl --connect-timeout 10 -s --user "api:${mailguntoken}" \
 -F from="LinuxGSM <${mailgunemailfrom}>" \
 -F from="LinuxGSM <${mailgunemailfrom}>" \
@@ -24,9 +24,9 @@ mailgunsend=$(curl --connect-timeout 10 -s --user "api:${mailguntoken}" \
 -F text="$(cat "${alertlog}")" "${mailgunapiurl}/v3/${mailgundomain}/messages")
 -F text="$(cat "${alertlog}")" "${mailgunapiurl}/v3/${mailgundomain}/messages")
 
 
 if [ -z "${mailgunsend}" ]; then
 if [ -z "${mailgunsend}" ]; then
-	fn_print_fail_nl "Sending Email alert: Mailgun: ${email}"
-	fn_script_log_fatal "Sending Email alert: Mailgun: ${email}"
+	fn_print_fail_nl "Sending Email alert: Mailgun: ${mailgunemail}"
+	fn_script_log_fatal "Sending Email alert: Mailgun: ${mailgunemail}"
 else
 else
-	fn_print_ok_nl "Sending Email alert: Mailgun: ${email}"
-	fn_script_log_pass "Sending Email alert: Mailgun: ${email}"
+	fn_print_ok_nl "Sending Email alert: Mailgun: ${mailgunemail}"
+	fn_script_log_pass "Sending Email alert: Mailgun: ${mailgunemail}"
 fi
 fi

+ 1 - 1
lgsm/functions/check_deps.sh

@@ -225,7 +225,7 @@ fn_deps_detector(){
 	## Check.
 	## Check.
 	# SteamCMD: Will be removed from required array if no appid is present or non-free repo is not available.
 	# SteamCMD: Will be removed from required array if no appid is present or non-free repo is not available.
 	# This will cause SteamCMD to be installed using tar.
 	# This will cause SteamCMD to be installed using tar.
-	if [ -z "${appid}" ]||[ "${deptocheck}" == "steamcmd" ]&&[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
+	if [ "${deptocheck}" == "steamcmd" ]&&[ -z "${appid}" ]||[ "${deptocheck}" == "steamcmd" ]&&[ "${distroid}" == "debian" ]&& ! grep -qE "^deb .*non-free" /etc/apt/sources.list; then
 		array_deps_required=( "${array_deps_required[@]/steamcmd}" )
 		array_deps_required=( "${array_deps_required[@]/steamcmd}" )
 		steamcmdstatus=1
 		steamcmdstatus=1
 	# Java: Added for users using Oracle JRE to bypass check.
 	# Java: Added for users using Oracle JRE to bypass check.

+ 1 - 1
lgsm/functions/core_functions.sh

@@ -8,7 +8,7 @@
 
 
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 
-modulesversion="v21.3.2"
+modulesversion="v21.3.3"
 
 
 # Core
 # Core
 
 

+ 1 - 4
lgsm/functions/update_mta.sh

@@ -99,10 +99,7 @@ fn_update_mta_localbuild(){
 
 
 fn_update_mta_remotebuild(){
 fn_update_mta_remotebuild(){
 	# Gets remote build info.
 	# Gets remote build info.
-	majorversion=$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAJOR" | awk '{ print $3 }' | sed 's/\r//g')
-	minorversion=$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MINOR" | awk '{ print $3 }' | sed 's/\r//g')
-	maintenanceversion=$(curl -s https://raw.githubusercontent.com/multitheftauto/mtasa-blue/master/Server/version.h | grep "#define MTASA_VERSION_MAINTENANCE" | awk '{ print $3 }' | sed 's/\r//g')
-	remotebuild="${majorversion}.${minorversion}.${maintenanceversion}"
+	remotebuild=$(curl -s "https://api.github.com/repos/multitheftauto/mtasa-blue/releases/latest" | jq -r '.tag_name')
 	if [ "${firstcommandname}" != "INSTALL" ]; then
 	if [ "${firstcommandname}" != "INSTALL" ]; then
 		fn_print_dots "Checking remote build: ${remotelocation}"
 		fn_print_dots "Checking remote build: ${remotelocation}"
 		# Checks if remotebuild variable has been set.
 		# Checks if remotebuild variable has been set.

+ 1 - 1
linuxgsm.sh

@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="v21.3.2"
+version="v21.3.3"
 shortname="core"
 shortname="core"
 gameservername="core"
 gameservername="core"
 commandname="CORE"
 commandname="CORE"

+ 1 - 1
tests/tests_fctrserver.sh

@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="v21.3.2"
+version="v21.3.3"
 shortname="fctr"
 shortname="fctr"
 gameservername="fctrserver"
 gameservername="fctrserver"
 commandname="CORE"
 commandname="CORE"

+ 1 - 1
tests/tests_jc2server.sh

@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="v21.3.2"
+version="v21.3.3"
 shortname="jc2"
 shortname="jc2"
 gameservername="jc2server"
 gameservername="jc2server"
 commandname="CORE"
 commandname="CORE"

+ 1 - 1
tests/tests_mcserver.sh

@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="v21.3.2"
+version="v21.3.3"
 shortname="mc"
 shortname="mc"
 gameservername="mcserver"
 gameservername="mcserver"
 commandname="CORE"
 commandname="CORE"

+ 1 - 1
tests/tests_ts3server.sh

@@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then
 	set -x
 	set -x
 fi
 fi
 
 
-version="v21.3.2"
+version="v21.3.3"
 shortname="ts3"
 shortname="ts3"
 gameservername="ts3server"
 gameservername="ts3server"
 commandname="CORE"
 commandname="CORE"