1
0
Fork 0
forked from ahurac/dotfiles

Correction : ré-écriture de launch-minecraft-server 2

This commit is contained in:
Hippolyte Chauvin 2023-07-02 15:26:02 +02:00
parent 6faa12608a
commit 653d038624

View file

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