Update necessary packages

This commit is contained in:
Return
2024-06-11 16:50:35 +03:30
committed by GitHub
parent 75ea5877a1
commit abfc0949de

View File

@ -3,7 +3,9 @@
# Ensure necessary packages are installed # Ensure necessary packages are installed
if ! command -v jq &> /dev/null || ! command -v qrencode &> /dev/null || ! command -v curl &> /dev/null; then if ! command -v jq &> /dev/null || ! command -v qrencode &> /dev/null || ! command -v curl &> /dev/null; then
echo "Necessary packages are not installed. Please wait while they are being installed..." echo "Necessary packages are not installed. Please wait while they are being installed..."
apt-get update -qq && apt-get install jq qrencode curl pwgen uuid-runtime -y >/dev/null 2>&1 sleep 3
echo
apt-get update && apt-get install jq qrencode curl pwgen uuid-runtime -y
fi fi
# Function to install and configure Hysteria2 # Function to install and configure Hysteria2