Browse Source

Re added sourcetv port and insecure mode

Re added sourcetv port and insecure mode
These where removed but are required
pull/137/head
Daniel Gibbs 11 years ago
parent
commit
cd747d6d5d
  1. 7
      NoMoreRoomInHell/nmrihserver

7
NoMoreRoomInHell/nmrihserver

@ -20,6 +20,7 @@ steampass="password"
defaultmap="nmo_broadway" defaultmap="nmo_broadway"
maxplayers="8" maxplayers="8"
port="27015" port="27015"
sourcetvport="27020"
clientport="27005" clientport="27005"
ip="0.0.0.0" ip="0.0.0.0"
@ -201,7 +202,7 @@ echo -e "Press CTRL+c to drop out of debug mode"
echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped" echo -e "\e[0;31mWARNING!\e[0;39m If ${servicename} is already running it will be stopped"
echo "" echo ""
echo "Start parameters:" echo "Start parameters:"
echo ${parms} echo "${parms} -debug -insecure"
echo "" echo ""
while true; do while true; do
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
@ -219,7 +220,7 @@ sleep 1
fn_scriptlog "Started debug mode ${servername}" fn_scriptlog "Started debug mode ${servername}"
echo -en "\n" echo -en "\n"
cd "${executabledir}" cd "${executabledir}"
${executable} ${parms} -debug ${executable} ${parms} -debug -insecure
} }
fn_console(){ fn_console(){
@ -595,7 +596,7 @@ fi
# Create lock file # Create lock file
date > ${lockselfname} date > ${lockselfname}
cd "${executabledir}" cd "${executabledir}"
tmux new-session -d -s ${servicename} "${executable} ${parms}" tmux new-session -d -s ${servicename} "${executable} ${parms} -debug -insecure"
tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'" tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
sleep 1 sleep 1
tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l) tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l)

Loading…
Cancel
Save