فهرست منبع

Merge branch 'development' of https://github.com/dgibbs64/linuxgsm into development

Daniel Gibbs 10 سال پیش
والد
کامیت
97c3e55be9

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -174,7 +174,7 @@ fn_stop_ark(){
         fi
 
         if [[ ${#queryport} -gt 0 ]] ; then
-                for (( pidcheck=0 ; pidcheck < ${MADPIDITER} ; pidcheck++ )) ; do
+                for (( pidcheck=0 ; pidcheck < ${MAXPIDITER} ; pidcheck++ )) ; do
                         pid=$(netstat -nap 2>/dev/null | grep ^udp[[:space:]] |\
                                 grep :${queryport}[[:space:]] | rev | awk '{print $1}' |\
                                 rev | cut -d\/ -f1)

+ 3 - 1
lgsm/functions/command_validate.sh

@@ -22,8 +22,10 @@ fn_validation(){
 
 	cd "${rootdir}/steamcmd"
 
-	if [ $(command -v unbuffer) ]; then
+        if [ $(command -v unbuffer) ]; then
 		unbuffer=unbuffer
+        elif  [ $(command -v stdbuf) ]; then
+		unbuffer="stdbuf -i0 -o0 -e0"
 	fi
 
 	if [ "${engine}" == "goldsource" ]; then

+ 3 - 1
lgsm/functions/install_server_files.sh

@@ -45,6 +45,8 @@ fn_install_server_files_steamcmd(){
 			# Detects if unbuffer command is available.
 			if [ $(command -v unbuffer) ]; then
 				unbuffer=unbuffer
+                        elif  [ $(command -v stdbuf) ]; then
+		            unbuffer="stdbuf -i0 -o0 -e0"
 			fi
 
 			if [ "${counter}" -le "4" ]; then
@@ -107,4 +109,4 @@ if [ -z "${autoinstall}" ]; then
 			* ) echo "Please answer yes or no.";;
 		esac
 	done
-fi
+fi

+ 2 - 0
lgsm/functions/update_dl.sh

@@ -16,6 +16,8 @@ fn_steamcmd_dl(){
 	# Detects if unbuffer command is available.
 	if [ $(command -v unbuffer) ]; then
 		unbuffer=unbuffer
+        elif  [ $(command -v stdbuf) ]; then
+		unbuffer="stdbuf -i0 -o0 -e0"
 	fi
 
 	if [ "${engine}" == "goldsource" ]; then