feat: install jq in containers for better JSON handling

- Containers created by the script now get jq installed
- Makes auto-update config more reliable
- Keeps JSON properly formatted
- Falls back gracefully if jq can't be installed
- Only affects fresh installs in containers, not existing systems
This commit is contained in:
Pulse Monitor
2025-08-30 08:03:05 +00:00
parent 89ad7a3261
commit 587ffd2be8
+5 -1
View File
@@ -1019,7 +1019,11 @@ install_dependencies() {
print_info "Installing dependencies..."
apt-get update -qq >/dev/null 2>&1
apt-get install -y -qq curl wget >/dev/null 2>&1
# Install essential dependencies plus jq for reliable JSON handling
apt-get install -y -qq curl wget jq >/dev/null 2>&1 || {
# If jq fails to install, just install the essentials
apt-get install -y -qq curl wget >/dev/null 2>&1
}
}
create_user() {