mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-01-27 09:44:45 +01:00
Add possibility to use a whitelist
This commit is contained in:
parent
c3631942e8
commit
81c9d50e7a
@ -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
|
cp /opt/factorio/data/map-gen-settings.example.json $CONFIG/map-gen-settings.json
|
||||||
fi
|
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
|
if ! find -L $SAVES -iname \*.zip -mindepth 1 -print | grep -q .; then
|
||||||
/opt/factorio/bin/x64/factorio \
|
/opt/factorio/bin/x64/factorio \
|
||||||
--create $SAVES/_autosave1.zip \
|
--create $SAVES/_autosave1.zip \
|
||||||
@ -31,5 +35,6 @@ exec /opt/factorio/bin/x64/factorio \
|
|||||||
--port $PORT \
|
--port $PORT \
|
||||||
--start-server-load-latest \
|
--start-server-load-latest \
|
||||||
--server-settings $CONFIG/server-settings.json \
|
--server-settings $CONFIG/server-settings.json \
|
||||||
|
--server-whitelist $CONFIG/server-whitelist.json \
|
||||||
--rcon-port 27015 \
|
--rcon-port 27015 \
|
||||||
--rcon-password "$(cat $CONFIG/rconpw)"
|
--rcon-password "$(cat $CONFIG/rconpw)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user