fix installer with add jq and dig install is not exist
This commit is contained in:
13
install.sh
13
install.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user