workaround 0.17 issues

This commit is contained in:
installgen2 2019-02-26 14:12:51 -07:00
parent f5ffae1cb4
commit a9047cae58

View File

@ -19,9 +19,10 @@ if [ ! -f $CONFIG/server-settings.json ]; then
cp /opt/factorio/data/server-settings.example.json $CONFIG/server-settings.json cp /opt/factorio/data/server-settings.example.json $CONFIG/server-settings.json
fi fi
if [ ! -f $CONFIG/map-gen-settings.json ]; then #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
echo "{}" > $CONFIG/map-gen-settings.json
if [ ! -f $CONFIG/map-settings.json ]; then if [ ! -f $CONFIG/map-settings.json ]; then
cp /opt/factorio/data/map-settings.example.json $CONFIG/map-settings.json cp /opt/factorio/data/map-settings.example.json $CONFIG/map-settings.json
@ -42,13 +43,14 @@ if [ "$(id -u)" = '0' ]; then
chown -R factorio:factorio $FACTORIO_VOL chown -R factorio:factorio $FACTORIO_VOL
fi fi
exec gosu factorio /opt/factorio/bin/x64/factorio \ 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 \
--server-banlist $CONFIG/server-banlist.json \ --server-banlist $CONFIG/server-banlist.json \
--rcon-port $RCON_PORT \ --rcon-port $RCON_PORT \
--server-whitelist $CONFIG/server-whitelist.json \
--use-server-whitelist \
--rcon-password "$(cat $CONFIG/rconpw)" \ --rcon-password "$(cat $CONFIG/rconpw)" \
--server-id /factorio/config/server-id.json \ --server-id /factorio/config/server-id.json \
$@ $@