Official setup scripts used by Gamocosm for different flavours of Minecraft servers. Read this wiki page for instructions on adding support for new flavours.
- give credit to the server/modpack developers
- install the correct version of Java (usually
java-1.8.0-openjdk-headless
orjava-latest-openjdk-headless
) - the script should not make any assumptions about where it is run, and install the server in the current directory
- Gamocosm will run the script as root, and recursively
chown
the Minecraft folder (formcuser
) - you can use
pushd <dir>
andpopd
instead ofcd <dir>
chmod +x
the scripts- a
$MINECRAFT_FLAVOUR_VERSION
environment variable will be provided - be idempotent (as best as possible)
- delete any files that may exist beforehand (e.g. from a failed installation) that could cause conflicts
- don't delete/modify anything else you don't have to
- cleanup any intermediate files and folders
- look at the existing scripts for examples/templates
- download files with
curl -Lo <output file> <url>
(wget
is nolonger installed by default)