9 lines
162 B
Bash
Executable file
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
|
|
|