disable color on strdout when managed by OpenNelManager
This commit is contained in:
parent
cf4d39dd48
commit
abf682eea1
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue