44 lines
763 B
Text
44 lines
763 B
Text
|
faire check des dependances
|
||
|
|
||
|
-->
|
||
|
duf
|
||
|
gtop
|
||
|
vtop
|
||
|
glances
|
||
|
htop
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# Vérifier si la commande 'curl' est installée
|
||
|
if ! which curl > /dev/null; then
|
||
|
echo "La dépendance curl n'est pas installée."
|
||
|
read -p "Voulez-vous l'installer maintenant? (y/n) " choice
|
||
|
if [ "$choice" = "y" ]; then
|
||
|
sudo apt-get install curl
|
||
|
else
|
||
|
echo "Installation annulée."
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
# Vérifier si le paquet 'python3' est installé
|
||
|
if ! dpkg-query -W python3 > /dev/null; then
|
||
|
echo "Le paquet python3 n'est pas installé."
|
||
|
read -p "Voulez-vous l'installer maintenant? (y/n) " choice
|
||
|
if [ "$choice" = "y" ]; then
|
||
|
sudo apt-get install python3
|
||
|
else
|
||
|
echo "Installation annulée."
|
||
|
exit 1
|
||
|
fi
|
||
|
fi
|