From abf682eea1115669853f162f3a139841d02593ff Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Wed, 19 Sep 2018 10:14:16 +0200 Subject: [PATCH] disable color on strdout when managed by OpenNelManager --- server/debian/common/servercontainer_launch_auto.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/debian/common/servercontainer_launch_auto.sh b/server/debian/common/servercontainer_launch_auto.sh index 9780e8b..bf43521 100755 --- a/server/debian/common/servercontainer_launch_auto.sh +++ b/server/debian/common/servercontainer_launch_auto.sh @@ -207,6 +207,15 @@ elif [[ $METHOD_START -eq 2 ]] then msg_debug "start with OpenNelManager" touch /home/gameserver/opennelmanager.flag + # Disable Color + grep -e '^StdDisplayerColor' /home/gameserver/khanat/server/common.cfg >/dev/null + if [[ $? -eq 0 ]] + then + sed -i 's/StdDisplayerColor.*/StdDisplayerColor = 0;/g' /home/gameserver/khanat/server/common.cfg + else + echo -en "\n// ---- Disable color\nStdDisplayerColor = 0;\n" >> /home/gameserver/khanat/server/common.cfg + fi + # Start OpenNelManager create_default_file_for_opennel_manager python3 -m pymanager.manager -c /home/gameserver/khanat/khaganat.cfg --log DEBUG --filelog /home/gameserver/log/khanat/OpenNelManager.log --launch-program & #sleep 10