mirror of
https://github.com/hermensbas/azerothcore_installer.git
synced 2026-01-13 00:28:33 +00:00
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
##########################################################################################
|
|
# handle the tmux sessions
|
|
##########################################################################################
|
|
if tmux new-session -d -s $AUTHSERVER_SESSION; then
|
|
echo "Created authserver session: $AUTHSERVER_SESSION"
|
|
else
|
|
echo "Error when trying to create authserver session: $AUTHSERVER_SESSION"
|
|
fi
|
|
echo " "
|
|
|
|
if tmux new-session -d -s $WORLDSERVER_SESSION; then
|
|
echo "Created worldserver session: $WORLDSERVER_SESSION"
|
|
else
|
|
echo "Error when trying to create worldserver session: $WORLDSERVER_SESSION"
|
|
fi
|
|
echo " "
|
|
|
|
if tmux send-keys -t $AUTHSERVER_SESSION "${SERVER_ROOT}/acore.sh run-authserver" C-m; then
|
|
echo "Executed \"${SERVER_ROOT}/acore.sh run-authserver \" inside $AUTHSERVER_SESSION"
|
|
else
|
|
echo "Error when executing \"${SERVER_ROOT}/acore.sh run-authserver\" inside $AUTHSERVER_SESSION"
|
|
fi
|
|
echo " "
|
|
|
|
if tmux send-keys -t $WORLDSERVER_SESSION "${SERVER_ROOT}/acore.sh run-worldserver" C-m; then
|
|
echo "Executed \"${SERVER_ROOT}/acore.sh run-worldserver\" inside $WORLDSERVER_SESSION"
|
|
else
|
|
echo "Error when executing \"${SERVER_ROOT}/acore.sh run-worldserver\" inside $WORLDSERVER_SESSION"
|
|
fi
|
|
|
|
echo " "
|
|
source ${ROOT_DIR}/script/menu.sh
|