Ajout : script de lancement d'un serveur Minecraft
This commit is contained in:
parent
22527d6b5e
commit
0e63541479
1 changed files with 8 additions and 0 deletions
8
bin/launch-minecraft-server
Executable file
8
bin/launch-minecraft-server
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh -ex
|
||||||
|
|
||||||
|
# Se déplacer dans le dossier du serveur
|
||||||
|
cd "/srv/minecraft/servers/${1}"
|
||||||
|
|
||||||
|
# Exécution
|
||||||
|
sudo -u minecraft screen ./start.sh
|
||||||
|
|
Loading…
Reference in a new issue