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:
Muhammad Ibrahim
2025-09-20 13:20:17 +01:00
parent 4576781900
commit 75a4b4a912
2 changed files with 3059 additions and 3 deletions

3056
manage-patchmon-dev.sh Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -228,10 +228,10 @@ update_system() {
fi
# 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}"
apt-get install -y curl netcat-openbsd git
print_status "Essential tools installed"
apt-get install -y curl netcat-openbsd git jq
print_status "Essential tools installed (curl, netcat, git, jq)"
fi
}