petit modifs
This commit is contained in:
parent
ffffe65ce3
commit
d3689d21d0
2
app.py
2
app.py
@ -19,4 +19,4 @@ async def receive_info(request: Request):
|
|||||||
|
|
||||||
# Debug
|
# Debug
|
||||||
print("Infos reçues :", data)
|
print("Infos reçues :", data)
|
||||||
return ({"status": "ok"})
|
return ({"status": "ok"})
|
||||||
|
|||||||
10
grabber.sh
10
grabber.sh
@ -93,7 +93,6 @@ json_data=$(jq -n \
|
|||||||
}
|
}
|
||||||
}')
|
}')
|
||||||
|
|
||||||
echo $json_data
|
|
||||||
|
|
||||||
|
|
||||||
curl -X POST http://localhost:8000/endpoint \
|
curl -X POST http://localhost:8000/endpoint \
|
||||||
@ -103,14 +102,14 @@ curl -X POST http://localhost:8000/endpoint \
|
|||||||
########################################
|
########################################
|
||||||
|
|
||||||
# Affichage du texte de démarrage
|
# Affichage du texte de démarrage
|
||||||
|
echo " "
|
||||||
echo " ++++++++++++++++++++++++++++++++++"
|
echo " ++++++++++++++++++++++++++++++++++"
|
||||||
echo " + Welcome to Grabber +"
|
echo " + Welcome to Grabber +"
|
||||||
echo " ++++++++++++++++++++++++++++++++++"
|
echo " ++++++++++++++++++++++++++++++++++"
|
||||||
echo " "
|
echo " "
|
||||||
echo "Hello $USER !"
|
echo "Hello $USER !"
|
||||||
echo ". . ."
|
echo ". . ."
|
||||||
echo "Tout les fichiers crées se trouveront dans le dossier /opt/grabber ;)"
|
echo "Tout les fichiers crées se trouveront dans le dossier /opt/grabber"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
#Array File
|
#Array File
|
||||||
@ -225,5 +224,6 @@ hardware
|
|||||||
software
|
software
|
||||||
echo " "
|
echo " "
|
||||||
echo "Le fichier summary.txt contient les infos hardware et software du système"
|
echo "Le fichier summary.txt contient les infos hardware et software du système"
|
||||||
echo "À bientôt ;)"
|
echo "À bientôt"
|
||||||
|
echo " "
|
||||||
|
echo $json_data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user