forked from ahurac/dotfiles
Ajout : cas d'utilisation dans mcserv
This commit is contained in:
parent
6489a11307
commit
32069470b7
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash -x
|
||||||
|
|
||||||
shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
alias mcscreen='sudo -u minecraft screen'
|
alias mcscreen='sudo -u minecraft screen'
|
||||||
|
@ -14,6 +14,7 @@ public_usage() {
|
||||||
${name}: utilisation
|
${name}: utilisation
|
||||||
${name} start|status|stop|watch NOM_SERVEUR
|
${name} start|status|stop|watch NOM_SERVEUR
|
||||||
${name} list
|
${name} list
|
||||||
|
${name} usage
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +53,7 @@ public_list() {
|
||||||
verb="$1"
|
verb="$1"
|
||||||
shift
|
shift
|
||||||
case "$verb" in
|
case "$verb" in
|
||||||
start)
|
start|status|stop|watch|list|usage)
|
||||||
"public_${verb}" "$@"
|
"public_${verb}" "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue