Bash3lper/Aide

52 lines
898 B
Plaintext

faire check des dependances
--> verif tool a chek si installer:
duf
gtop
vtop
glances
htop
sensible-browser
s-tui
nload
iftop
nethogs
bmon
netwatch
ttyload
netload
speedometer
vnstat
whiptail
vmstat
# 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