disable color on strdout when managed by OpenNelManager

This commit is contained in:
AleaJactaEst 2018-09-19 10:14:16 +02:00
parent cf4d39dd48
commit abf682eea1

View file

@ -207,6 +207,15 @@ elif [[ $METHOD_START -eq 2 ]]
then then
msg_debug "start with OpenNelManager" msg_debug "start with OpenNelManager"
touch /home/gameserver/opennelmanager.flag 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 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 & python3 -m pymanager.manager -c /home/gameserver/khanat/khaganat.cfg --log DEBUG --filelog /home/gameserver/log/khanat/OpenNelManager.log --launch-program &
#sleep 10 #sleep 10