Skip to content

Commit

Permalink
feat: 更新dp2插件至6r3/调整dp2脚本初始化顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderYe committed Apr 21, 2022
1 parent b2dd9cc commit 1a1b00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnf-server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ fi
# dp插件
if $DP2;
then
# dp2脚本
cp -rf /data/dp2/* /dp2/
# 替换dp2 lib
cp /dp2/libGeoIP.so.1 /lib/libGeoIP.so.1
echo "enable dp2"
else
Expand Down Expand Up @@ -101,9 +104,6 @@ cp /data/privatekey.pem /root/
# 构建配置文件软链[不能使用硬链接, 硬链接不可跨设备]
ln -s /data/Config.ini /root/Config.ini

# dp2脚本
cp -rf /data/dp2/* /dp2/

# 替换Config.ini中的GM用户名、密码、连接KEY、登录器版本[这里操作的对象是一个软链接不需要指定-type]
sed -i --follow-symlinks "6c IP=$MYSQL_IP" `find /root -name "*.ini"`
sed -i --follow-symlinks "7c Password=$GAME_PASSWORD" `find /root -name "*.ini"`
Expand Down
Binary file modified dnf-server/dp2.tar.gz
Binary file not shown.

0 comments on commit 1a1b00a

Please sign in to comment.