Skip to content

Commit 92947c9

Browse files
authored
docs: clarify the resolved value for %VAR% (#2490)
1 parent e8ffa0f commit 92947c9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/configuration/server-properties.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ When declaring a server properties via container environment variables, those va
1010

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

13-
`%VAR%`
13+
`%VAR%` or `%env:VAR%`
1414

15-
: Replaced with the value of the environment variable `VAR`
16-
17-
`%env:VAR%`
18-
19-
: Also, replaced with the value of the environment variable `VAR`
15+
: Replaced with the resolved value or the environment variable `VAR`
2016

2117
`%date:FMT%`
2218

23-
: 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.
19+
: 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).
2420

2521
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`
2622

0 commit comments

Comments
 (0)