-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
syji35
committed
Nov 22, 2023
1 parent
fde0eea
commit e7078df
Showing
2 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Lauch server | ||
carton exec hypnotoad /lufi/script/lufi | ||
|
||
# Vérification du nombre d'arguments | ||
if [ "$#" -eq 0 ]; then | ||
command="start" | ||
else | ||
command=$1 | ||
fi | ||
|
||
|
||
# Condition pour exécuter différentes commandes en fonction du paramètre | ||
if [ "$command" = "start" ]; then | ||
echo "Exécution de la commande 1" | ||
carton exec hypnotoad /lufi/script/lufi | ||
elif [ "$command" = "cron" ]; then | ||
echo "Exécution des cron" | ||
# Ajoutez ici la commande que vous souhaitez exécuter pour "commande2" | ||
else | ||
echo "Commande non reconnue: $command" | ||
exit 1 | ||
fi | ||
|
||
# print logs | ||
tail -f /lufi/log/production.log |