Преглед изворни кода

Fixed gsquery installing in incorrect location

Daniel Gibbs пре 11 година
родитељ
комит
fbd9120d76

+ 2 - 2
Arma3/arma3server

@@ -613,7 +613,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -723,7 +723,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"

+ 3 - 3
BladeSymphony/bsserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -724,7 +724,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"
@@ -867,7 +867,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
CounterStrike/csserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -758,7 +758,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
CounterStrikeConditionZero/csczserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -758,7 +758,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
CounterStrikeGlobalOffensive/csgoserver

@@ -634,7 +634,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -788,7 +788,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
CounterStrikeSource/cssserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -759,7 +759,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
DayOfDefeat/dodserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -758,7 +758,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
DayOfDefeatSource/dodsserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -759,7 +759,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 3 - 3
FistfulOfFrags/fofserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -724,7 +724,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"
@@ -867,7 +867,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 1 - 1
GarrysMod/gmodserver

@@ -621,7 +621,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"

+ 2 - 2
HalfLife2Deathmatch/hl2dmserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -759,7 +759,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
HalfLifeDeathmatchClassic/hldmcserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -758,7 +758,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 3 - 3
Insurgency/insserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -724,7 +724,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"
@@ -867,7 +867,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
KillingFloor/kfserver

@@ -610,7 +610,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -810,7 +810,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
Left4Dead/l4dserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -769,7 +769,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
Left4Dead2/l4d2server

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -759,7 +759,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 3 - 3
NaturalSelection2/ns2server

@@ -613,7 +613,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -722,7 +722,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"
@@ -865,7 +865,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 3 - 3
NoMoreRoomInHell/nmrihserver

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -724,7 +724,7 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd [:digit:] | tail -c 3)" -lt 215
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libc.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libm.so.6
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
 		wget -nv -N https://github.com/dgibbs64/linuxgameservers/raw/master/GarrysMod/dependencies/libpthread.so.0
-		cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
+		sleep 1
 		echo ""
 		echo ""
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 	elif [ "${gamename}" == "Natural Selection 2" ];then
 		echo "Detected Natural Selection 2"
 		echo "Detected Natural Selection 2"
@@ -867,7 +867,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
RedOrchestra/roserver

@@ -606,7 +606,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -806,7 +806,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
TeamFortress2/tf2server

@@ -616,7 +616,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -759,7 +759,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
TeamFortressClassic/tfcserver

@@ -615,7 +615,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -758,7 +758,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
UnrealTournament2004/ut2k4server

@@ -567,7 +567,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -821,7 +821,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac

+ 2 - 2
UnrealTournament99/ut99server

@@ -564,7 +564,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 	exit
 fi
 fi
 # Create lock file
 # Create lock file
-date > ${rootdir}/${lockselfname}
+date > "${rootdir}/${lockselfname}"
 cd "${executabledir}"
 cd "${executabledir}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux new-session -d -s ${servicename} "${executable} ${parms}"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
 tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@@ -798,7 +798,7 @@ fn_getquery(){
 	while true; do
 	while true; do
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		read -p "Do you want to install GameServerQuery? [y/N]" yn
 		case $yn in
 		case $yn in
-		[Yy]* ) wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py;break;;
+		[Yy]* ) cd "${rootdir}"; wget -nv -N "http://danielgibbs.co.uk/dl/gsquery.py"; chmod +x gsquery.py; break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		[Nn]* ) echo -e "Not installing GameServerQuery.";break;;
 		* ) echo "Please answer yes or no.";;
 		* ) echo "Please answer yes or no.";;
 	esac
 	esac