check cpulimit command

This commit is contained in:
Lenny 2024-06-07 14:14:50 +08:00
parent 2069841d2f
commit fa3e82aa85

View File

@ -33,6 +33,15 @@ else
echo "git is installed"
fi
if ! command -v cpulimit &> /dev/null
then
echo "cpulimit could not be found"
echo "Installing cpulimit..."
su -c "apt update && apt install cpulimit -y"
else
echo "cpulimit is installed"
fi
sudo apt upgrade -y