Update necessary packages
This commit is contained in:
4
menu.sh
4
menu.sh
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user