diff --git a/DockerFile/install_dayz.sh b/DockerFile/install_dayz.sh index 4c7f2c3..82fa7bd 100644 --- a/DockerFile/install_dayz.sh +++ b/DockerFile/install_dayz.sh @@ -34,4 +34,7 @@ cat > /root/Steam/steamapps/common/DayZServer/battleye/beserver_x64.cfg << EOF RConPort 2314 RConPassword $password RestrictRCon 0 -EOF \ No newline at end of file +EOF + +# 更新mod +bash /opt/updatemod.sh \ No newline at end of file diff --git a/DockerFile/start.sh b/DockerFile/start.sh index abf0c5a..2696fdf 100644 --- a/DockerFile/start.sh +++ b/DockerFile/start.sh @@ -33,7 +33,6 @@ copy_files() { start_dayzserver() { cd /root/Steam/steamapps/common/DayZServer - # 启动服务器之前,检查mod是否有更新. updatemodpath="/root/Steam/steamapps/workshop/content/221100" target_dir="/root/Steam/steamapps/common/DayZServer/client_mod" @@ -134,6 +133,8 @@ start_dayzserver() { if [ ! -f "/opt/steamcmd/steamcmd.sh" ]; then echo "SteamCMD未安装,开始下载和安装..." echo "下载SteamCMD..." + unset http_proxy + unset https_proxy wget -O /opt/steamcmd/steamcmd_linux.tar.gz ${STEAMCMD_URL} echo "解压SteamCMD..." tar xvzf /opt/steamcmd/steamcmd_linux.tar.gz -C /opt/steamcmd