We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd6a0e3 commit e48f2fbCopy full SHA for e48f2fb
1 file changed
entrypoint.sh
@@ -1,5 +1,13 @@
1
#!/bin/sh
2
3
+# set default parameters for Hytale server
4
+HYTALE_PARAMETERS=${HYTALE_PARAMETERS:-"-jar /app/Hytale/Server/HytaleServer.jar --assets /app/Hytale/Assets.zip"}
5
+
6
+# do we have any additional parameters to append?
7
+if [ ! -z "$HYTALE_ADDITIONAL_PARAMETERS" ]; then
8
+ HYTALE_PARAMETERS="$HYTALE_PARAMETERS $HYTALE_ADDITIONAL_PARAMETERS"
9
+fi
10
11
# Download Hytale server files if not already present
12
if [ ! -f "/app/Hytale/Server/HytaleServer.jar" ]; then
13
echo "Hytale server files not found. Downloading..."
@@ -18,4 +26,4 @@ else
18
26
fi
19
27
20
28
# Start the Hytale server
21
-exec java -jar /app/Hytale/Server/HytaleServer.jar --assets /app/Hytale/Assets.zip
29
+exec java $HYTALE_PARAMETERS
0 commit comments