mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-26 10:58:22 +01:00
Add documentation for env variable MODS and make it actually change the mod directory (#520)
This commit is contained in:
parent
f9040c7450
commit
0ec91c3391
@ -262,7 +262,7 @@ The `server-settings.json` file may then contain the variable references like th
|
||||
These are the environment variables which can be specified at container run time.
|
||||
|
||||
| Variable Name | Description | Default | Available in |
|
||||
|----------------------|----------------------------------------------------------------------|------------|--------------|
|
||||
|----------------------|----------------------------------------------------------------------|----------------|--------------|
|
||||
| GENERATE_NEW_SAVE | Generate a new save if one does not exist before starting the server | false | 0.17+ |
|
||||
| LOAD_LATEST_SAVE | Load latest when true. Otherwise load SAVE_NAME | true | 0.17+ |
|
||||
| PORT | UDP port the server listens on | 34197 | 0.15+ |
|
||||
@ -274,6 +274,7 @@ These are the environment variables which can be specified at container run time
|
||||
| USERNAME | factorio.com username | | 0.17+ |
|
||||
| CONSOLE_LOG_LOCATION | Saves the console log to the specifies location | | |
|
||||
| DLC_SPACE_AGE | Enables or disables the mods for DLC Space Age in mod-list.json | true | 2.0.8+ |
|
||||
| MODS | Mod directory to use | /factorio/mods | 2.0.10+ |
|
||||
|
||||
**Note:** All environment variables are compared as strings
|
||||
|
||||
|
@ -102,6 +102,7 @@ FLAGS=(\
|
||||
--server-adminlist "$CONFIG/server-adminlist.json" \
|
||||
--rcon-password "$(cat "$CONFIG/rconpw")" \
|
||||
--server-id /factorio/config/server-id.json \
|
||||
--mod-directory "$MODS" \
|
||||
)
|
||||
|
||||
if [ -n "$CONSOLE_LOG_LOCATION" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user