Initial commit
This commit is contained in:
13
Universal/entrypoint.sh
Normal file
13
Universal/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check if JAR URL is provided
|
||||
if [ -z "$JAR" ]; then
|
||||
echo "Error: JAR URL not provided."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Download the Minecraft server JAR
|
||||
curl -o minecraft-server.jar "$JAR"
|
||||
|
||||
# Run the Minecraft server
|
||||
java -Xmx${MEMORY} -Xms${MEMORY} -jar minecraft-server.jar nogui
|
||||
Reference in New Issue
Block a user