1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/bin/launch-minecraft-server

10 lines
162 B
Text
Raw Normal View History

#!/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