Spigot minecraft server in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
308 B

  1. #!/bin/sh -x
  2. MEMLIMIT=${MEMLIMIT:-2G}
  3. JAVAARGS=${JAVAARGS:-""}
  4. test ! -f /srv/spigot/spigot.jar && cp /srv/spigot-default/spigot.jar /srv/spigot/
  5. test ! -f /srv/spigot/eula.txt && cp /srv/spigot-default/eula.txt /srv/spigot/
  6. cd /srv/spigot/
  7. exec java -Xmx$MEMLIMIT $JAVAARGS -jar spigot.jar --nojline $@