From 81c9d50e7ab2c93375bebf3de886e59c2ebb8043 Mon Sep 17 00:00:00 2001 From: gnomus Date: Wed, 26 Apr 2017 13:29:47 +0200 Subject: [PATCH 1/2] Add possibility to use a whitelist --- 0.15/docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/0.15/docker-entrypoint.sh b/0.15/docker-entrypoint.sh index 3f15931..869bb19 100755 --- a/0.15/docker-entrypoint.sh +++ b/0.15/docker-entrypoint.sh @@ -21,6 +21,10 @@ if [ ! -f $CONFIG/map-gen-settings.json ]; then cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json fi +if [ ! -f $CONFIG/server-whitelist.json ]; then + cp /opt/factorio/data/server-whitelist.example.json $CONFIG/server-whitelist.json +fi + if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then /opt/factorio/bin/x64/factorio \ --create $SAVES/_autosave1.zip \ @@ -31,5 +35,6 @@ exec /opt/factorio/bin/x64/factorio \ --port $PORT \ --start-server-load-latest \ --server-settings $CONFIG/server-settings.json \ + --server-whitelist $CONFIG/server-whitelist.json \ --rcon-port 27015 \ --rcon-password "$(cat $CONFIG/rconpw)" From 75e98e05437f563b3afe6cb06b0bc79d5f2c04bb Mon Sep 17 00:00:00 2001 From: gnomus Date: Wed, 26 Apr 2017 21:37:54 +0200 Subject: [PATCH 2/2] Update docker-entrypoint.sh --- 0.15/docker-entrypoint.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/0.15/docker-entrypoint.sh b/0.15/docker-entrypoint.sh index 869bb19..b5802ad 100755 --- a/0.15/docker-entrypoint.sh +++ b/0.15/docker-entrypoint.sh @@ -21,10 +21,6 @@ if [ ! -f $CONFIG/map-gen-settings.json ]; then cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json fi -if [ ! -f $CONFIG/server-whitelist.json ]; then - cp /opt/factorio/data/server-whitelist.example.json $CONFIG/server-whitelist.json -fi - if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then /opt/factorio/bin/x64/factorio \ --create $SAVES/_autosave1.zip \