🎮 A configurable Minecraft server (auto-)updater https://git.forestier.app/HorlogeSkynet/MineSAUP
Go to file
Samuel FORESTIER bc7c56692b Bumps to v1.0.2 2021-01-16 12:04:54 +01:00
.gitignore Publishes an initial (working) version of MineSAUP 2020-12-25 19:21:53 +01:00
LICENSE Publishes an initial (working) version of MineSAUP 2020-12-25 19:21:53 +01:00
README.md Improves README documentation 2021-01-16 12:04:38 +01:00
minesaup.py Bumps to v1.0.2 2021-01-16 12:04:54 +01:00

README.md

MineSAUP

A configurable Minecraft Server (Auto-)Updater.

Dependency

  • python3 (>= 3.5)

Installation

Manually

git clone https://git.forestier.app/HorlogeSkynet/MineSAUP.git

Usage

python3 minesaup.py --help

# First time you install a Minecraft server ? Sure.
python3 minesaup.py -i /path/to/minecraft.jar

# Wanna preserve the current server binary somehow ? Sure.
python3 minesaup.py -b /path/to/minecraft.jar
file /path/to/minecraft.jar.bak  # A copy of the previous version appeared.

# You need to start/stop your server before/after updating your server ? Sure.
python3 minesaup.py \
	--pre-hook 'systemctl stop minecraft.service' \
	--post-hook 'systemctl start minecraft.service' \
	/path/to/minecraft.jar

# Always wanna be running the latest Mojang's snapshot version ? Sure !
python3 minesaup.py -s /path/to/minecraft.jar

Of course, exit status codes are consistent for proper script (including CRON) usages.

If the pre-hook fails, the update DOES NOT occur.
If the post-hook fails, the update WOULD NOT be rolled-back