Browse Source

tmuxception moved to check_tmuxception.sh

UltimateByte 9 years ago
parent
commit
6fec42b7c1
1 changed files with 0 additions and 23 deletions
  1. 0 23
      lgsm/functions/command_start.sh

+ 0 - 23
lgsm/functions/command_start.sh

@@ -9,27 +9,6 @@ local commandname="START"
 local commandaction="Starting"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
-fn_check_is_in_tmux(){
-	if [ -n "${TMUX}" ];then
-		fn_print_fail_nl "tmuxception error: Sorry Cobb you cannot start a tmux session inside of a tmux session."
-		fn_script_log_fatal "tmuxception error: Attempted to start a tmux session inside of a tmux session."
-		fn_print_information_nl "LGSM creates a tmux session when starting the server."
-		echo "It is not possible to run a tmux session inside another tmux session"
-		echo "https://github.com/GameServerManagers/LinuxGSM/wiki/Tmux#tmuxception"
-		core_exit.sh
-	fi
-}
-fn_check_is_in_screen(){
-	if [ "$TERM" == "screen" ];then
-		fn_print_fail_nl "tmuxception error: Sorry Cobb you cannot start a tmux session inside of a screen session."
-		fn_script_log_fatal "tmuxception error: Attempted to start a tmux session inside of a screen session."
-		fn_print_information_nl "LGSM creates a tmux session when starting the server."
-		echo "It is not possible to run a tmux session inside screen session"
-		echo "https://github.com/GameServerManagers/LinuxGSM/wiki/Tmux#tmuxception"
-		core_exit.sh
-	fi
-}
-
 fn_start_teamspeak3(){
 	if [ ! -e "${servercfgfullpath}" ]; then
 		fn_print_warn_nl "${servercfgfullpath} is missing"
@@ -186,8 +165,6 @@ fn_start_tmux(){
 
 fn_print_dots "${servername}"
 sleep 1
-fn_check_is_in_tmux
-fn_check_is_in_screen
 check.sh
 fix.sh
 info_config.sh