wenn ich m2 start eingebe (Invoice Unbugged Files) kommt
PHP Code:
/var/runscripts/m2.sh: Command not found.
PHP Code:
sh /var/runscripts/m2.sh
PHP Code:
/var/runscripts/m2.sh: 7: Syntax error: "elif" unexpected (expecting "then")
PHP Code:
#!/bin/sh
if [ "$1" != '' ]
then
if [ $1 = 'start' ]
then
cd /usr/home/game && sh start.sh
elif [ $1 = 'stop' ];then
cd /usr/home/game && sh close.sh
clear
elif [ $1 = 'lg' ];then
cd /usr/home/game && sh clear.sh
elif [ $1 = 'quest' ];then
cd /usr/home/game/quest && python make.py
elif [ $1 = 'help-en' ];then
echo 'Syntax: m2 <command>'
echo 'Example: m2 start'
echo 'Commands:'
echo ' start - Starts the 2013 files'
echo ' stop - Stops the 2013 files'
echo ' lg - Deletes the logs'
echo ' quest - Compiles the Quests'
echo ''
echo 'Orginal Script by Daroo'
echo 'Modified by xGr33n'
elif [ $1 = 'help-de' ];then
echo 'Syntax: m2 <Kommando>'
echo 'Beispiel: m2 start'
echo 'Verfuegbare Kommandos:'
echo ' start - Startet die 2013 Files'
echo ' stop - Stopt die 2013 Files'
echo ' lg - Loescht die Logs'
echo ' quest - Laedt die Quests neu'
echo ''
echo 'Orginal Script von Daroo'
echo 'Bearbeitet von xGr33n'
elif [ $1 = 'help-es' ];then
echo 'Syntax: m2 <comando>'
echo 'Ejemplo: m2 start'
echo 'Comandos:'
echo ' start - Iniciar los Serverfiles 2013'
echo ' stop - Parar los Serverfiles 2013'
echo ' lg - Borrar los logs'
echo ' quest - quest'
echo ''
echo 'Script Original por Daroo'
echo 'Modificado por xGr33n de Elitepvpers'
echo 'Traducido a Español por Vampirito'
fi
else
echo 'Type "m2 help-en" to show the help!'
echo 'Schreibe "m2 help-de" um die Hilfe anzuzeigen!'
echo 'Escriba "m2 help-es" Para mostrar la ayuda!'
exit
fi