mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-28 18:43:32 +00:00
Add jq installation to essential tools
- Added jq to essential tools installation in both manage-patchmon.sh and manage-patchmon-dev.sh - jq is useful for JSON processing and API interactions - Updated installation check to include jq command availability - Enhanced status message to show all installed tools
This commit is contained in:
3056
manage-patchmon-dev.sh
Executable file
3056
manage-patchmon-dev.sh
Executable file
File diff suppressed because it is too large
Load Diff
@@ -228,10 +228,10 @@ update_system() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install essential tools if not present
|
# Install essential tools if not present
|
||||||
if ! command -v curl >/dev/null 2>&1 || ! command -v nc >/dev/null 2>&1 || ! command -v git >/dev/null 2>&1; then
|
if ! command -v curl >/dev/null 2>&1 || ! command -v nc >/dev/null 2>&1 || ! command -v git >/dev/null 2>&1 || ! command -v jq >/dev/null 2>&1; then
|
||||||
echo -e "${BLUE}📦 Installing essential tools...${NC}"
|
echo -e "${BLUE}📦 Installing essential tools...${NC}"
|
||||||
apt-get install -y curl netcat-openbsd git
|
apt-get install -y curl netcat-openbsd git jq
|
||||||
print_status "Essential tools installed"
|
print_status "Essential tools installed (curl, netcat, git, jq)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user