dotfiles/bin/launch-minecraft-server
2023-07-02 15:26:02 +02:00

9 lines
162 B
Bash
Executable file

#!/bin/sh -e
cd /srv/minecraft/bin
if [ -f "$1" ]; then
sudo -u minecraft screen "./${1}"
else
>&2 echo "Le serveur \"${1}\" n'existe pas."
false
fi