Explorar o código

changed glicv to glibcversion

Daniel Gibbs %!s(int64=10) %!d(string=hai) anos
pai
achega
6c47f2b73c

+ 1 - 1
lgsm/functions/check_glibc.sh

@@ -9,7 +9,7 @@ lgsm_version="020116"
 info_glibc.sh
 
 glibcversion="$(ldd --version | sed -n '1s/.* //p')"
-if [ "$(printf '%s\n$glibcrequired\n' $glibcversion | sort -V | head -n 1)" != "${glibcrequired}" ]; then
+if [ "$(printf '%s\n${glibcrequired}\n' ${glibcversion} | sort -V | head -n 1)" == "${glibcrequired}" ]; then
 	if [ "${glibcfix}" != "yes" ]; then 
 		fn_print_warn_nl "Glibc fix: No Glibc fix available!"
 		echo -en "\n"

+ 1 - 1
lgsm/functions/command_details.sh

@@ -31,7 +31,7 @@ fn_details_os(){
 		echo -e "\e[34mKernel:\t\e[0m${kernel}"
 		echo -e "\e[34mHostname:\t\e[0m$HOSTNAME"
 		echo -e "\e[34mtmux:\t\e[0m${tmuxv}"
-		echo -e "\e[34mGLIBC:\t\e[0m${glibcv}"
+		echo -e "\e[34mGLIBC:\t\e[0m${glibcversion}"
 	} | column -s $'\t' -t 
 }
 

+ 1 - 1
lgsm/functions/email.sh

@@ -30,7 +30,7 @@ fi
 	echo -e "Kernel: ${kernel}"
 	echo -e "Hostname: $HOSTNAME"
 	echo -e "tmux: ${tmuxv}"
-	echo -e "GLIBC: ${glibcv}"
+	echo -e "GLIBC: ${glibcversion}"
 	echo -e ""
 	echo -e "========================================\nPerformance\n========================================"
 	echo -e "Uptime: ${days}d, ${hours}h, ${minutes}m"

+ 1 - 0
lgsm/functions/fix_glibc.sh

@@ -7,6 +7,7 @@ lgsm_version="220416"
 # Description: Downloads required glibc files and applys teh glibc fix if required
 
 info_glibc.sh
+info_distro.sh
 
 local libstdc_servers_array=( "ARMA 3" "Blade Symphony" "Garry's Mod" "Just Cause 2" )
 for libstdc_server in "${libstdc_servers_array[@]}"

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -23,7 +23,7 @@ fi
 
 # Glibc version number
 # e.g: 1.17
-glibcv=$(ldd --version |grep ldd|awk '{print $NF}')
+glibcversion="$(ldd --version | sed -n '1s/.* //p')"
 
 # tmux version
 # e.g: tmux 1.6