From 35d21aa0e54f229f1580aef8c60d7a51cda41752 Mon Sep 17 00:00:00 2001 From: Hive Date: Thu, 24 May 2018 14:20:56 +0200 Subject: [PATCH] steam-arma3: Some improvements --- Dockerfile | 2 +- README.md | 1 + bin/entrypoint.sh | 5 ++++- server.cfg.example | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ec5fe2..276a262 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM zombi/steam-base MAINTAINER MadMaurice , Paul -EXPOSE 2302-2305/udp +EXPOSE 2302-2305/udp 2308/udp ADD bin/entrypoint.sh /entrypoint.sh ADD server.cfg /home/steam diff --git a/README.md b/README.md index 01e5f34..2e919c5 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ docker build -t zombi/steam-arma3 . docker run -d \ --name arma3 \ -p 2302-2305:2302-2305/udp \ + -p 2308:2308/udp \ -v /data/steam-games:/home/steam/games \ zombi/steam-arma3 ``` diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 2b69d15..39b44d3 100644 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -35,9 +35,11 @@ then /opt/steamcmd/steamcmd.sh \ +login $steam_user $steam_password\ +force_install_dir $installdir \ - +app_update $game_id -beta legacyPorts -betapassword Arma3LegacyPorts validate \ + +app_update $game_id validate \ +quit + #+app_update $game_id -beta legacyPorts -betapassword Arma3LegacyPorts validate \ + exit 0 else # install dir maybe mounted read-only, simply @@ -64,6 +66,7 @@ if [ ! -x ./arma3server ] then # we cant run the game then. echo "game launcher not found, installed incorrectly?" + ls -alh exit 1 fi diff --git a/server.cfg.example b/server.cfg.example index 8d7098d..c6b304f 100644 --- a/server.cfg.example +++ b/server.cfg.example @@ -1,5 +1,5 @@ hostname="Community Server"; -passwordAdmin = "password"; +passwordAdmin = "boobs"; maxPlayers = 20; motd[] = {"Welcome to the ARMA3 Server","Please enjoy your stay!"};