diff --git a/build/Centos6-DNF/docker-entrypoint.sh b/build/Centos6-DNF/docker-entrypoint.sh index 9739105..55e1af5 100755 --- a/build/Centos6-DNF/docker-entrypoint.sh +++ b/build/Centos6-DNF/docker-entrypoint.sh @@ -52,7 +52,7 @@ cp /data/privatekey.pem /root/ # 构建配置文件软链[不能使用硬链接, 硬链接不可跨设备] ln -s /data/Config.ini /root/Config.ini # 替换Config.ini中的GM用户名、密码、连接KEY、登录器版本[这里操作的对象是一个软链接不需要指定-type] -sed -i --follow-symlinks "s/GAME_PASSWORD/$DNF_DB_GAME_PASSWORD" `find /root -name "*.ini"` +sed -i --follow-symlinks "s/GAME_PASSWORD/$DNF_DB_GAME_PASSWORD/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_ACCOUNT/$GM_ACCOUNT/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_PASSWORD/$GM_PASSWORD/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_CONNECT_KEY/$GM_CONNECT_KEY/g" `find /root -name "*.ini"` diff --git a/build/Centos7-DNF/docker-entrypoint.sh b/build/Centos7-DNF/docker-entrypoint.sh index 9739105..55e1af5 100755 --- a/build/Centos7-DNF/docker-entrypoint.sh +++ b/build/Centos7-DNF/docker-entrypoint.sh @@ -52,7 +52,7 @@ cp /data/privatekey.pem /root/ # 构建配置文件软链[不能使用硬链接, 硬链接不可跨设备] ln -s /data/Config.ini /root/Config.ini # 替换Config.ini中的GM用户名、密码、连接KEY、登录器版本[这里操作的对象是一个软链接不需要指定-type] -sed -i --follow-symlinks "s/GAME_PASSWORD/$DNF_DB_GAME_PASSWORD" `find /root -name "*.ini"` +sed -i --follow-symlinks "s/GAME_PASSWORD/$DNF_DB_GAME_PASSWORD/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_ACCOUNT/$GM_ACCOUNT/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_PASSWORD/$GM_PASSWORD/g" `find /root -name "*.ini"` sed -i --follow-symlinks "s/GM_CONNECT_KEY/$GM_CONNECT_KEY/g" `find /root -name "*.ini"`