diff --git a/script/6_server-start.sh b/script/6_server-start.sh index b14a79c..3344baa 100755 --- a/script/6_server-start.sh +++ b/script/6_server-start.sh @@ -83,6 +83,9 @@ if [[ $DEBUG_MODE -eq 1 ]]; then -ex \"thread apply all bt full\" \ --args $ROOT/_server/azerothcore/env/dist/bin/worldserver" else + + # Export environment variables inside tmux + tmux send-keys -t "$session_name" "export LOGS_PATH=$LOGS_PATH; export CRASHES_PATH=$CRASHES_PATH" C-m # via acore.sh for auto-restart WORLD_CMD="$ROOT/_server/azerothcore/acore.sh run-worldserver" fi