fix installer with add jq and dig install is not exist

This commit is contained in:
2026-01-31 23:14:36 +01:00
parent b6e0a8e4e8
commit a57baff125

View File

@@ -12,6 +12,19 @@ export TEXTDOMAINDIR="./locale"
install() {
# Check and install dependencies
if ! command -v jq &> /dev/null; then
echo "$(gettext "jq not found. Installing...")"
sudo apt-get update > /dev/null 2>&1
sudo apt-get install -y jq
fi
if ! command -v dig &> /dev/null; then
echo "$(gettext "dig not found. Installing dnsutils...")"
sudo apt-get update > /dev/null 2>&1
sudo apt-get install -y dnsutils
fi
dm=$(grep -i "alias dm='sudo clidmanager'" ~/.bashrc)
if [ $? -ne 0 ]
then