Correction : ré-écriture de launch-minecraft-server 2
This commit is contained in:
parent
6faa12608a
commit
653d038624
1 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
#!/bin/sh -ex
|
||||
#!/bin/sh -e
|
||||
cd /srv/minecraft/bin
|
||||
PATH=".:${PATH}"
|
||||
sudo -u minecraft screen "$1"
|
||||
if [ -f "$1" ]; then
|
||||
sudo -u minecraft screen "./${1}"
|
||||
else
|
||||
>&2 echo "Le serveur \"${1}\" n'existe pas."
|
||||
false
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue