Skip to content

Commit

Permalink
docs: clarify the resolved value for %VAR% (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg authored Nov 13, 2023
1 parent e8ffa0f commit 92947c9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/configuration/server-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ When declaring a server properties via container environment variables, those va

The syntax of placeholders is DOS-style, `%VAR%`, to avoid being processed by Docker or the shell and the following options are available:

`%VAR%`
`%VAR%` or `%env:VAR%`

: Replaced with the value of the environment variable `VAR`

`%env:VAR%`

: Also, replaced with the value of the environment variable `VAR`
: Replaced with the resolved value or the environment variable `VAR`

`%date:FMT%`

: The `FMT` string is processed by [Java's DateTimeFormatter](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/format/DateTimeFormatter.html) and the current date/time is formatted.
: Formats the current date/time with the given `FMT` string processed by [Java's DateTimeFormatter](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/format/DateTimeFormatter.html).

Any declared or resolved environment variable may be referenced, such as `VERSION` and `TYPE`. Additionally, [Modrinth](../types-and-platforms/mod-platforms/modrinth-modpacks.md) and [Auto CurseForge](../types-and-platforms/mod-platforms/auto-curseforge.md) modpacks will expose the environment variables `MODPACK_NAME` and `MODPACK_VERSION`. The originally declared version, such as "LATEST" or "SNAPSHOT", is available in the variable `DECLARED_VERSION`

Expand Down

0 comments on commit 92947c9

Please sign in to comment.