Add check-updates command to detect and update outdated agents and services
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 48s
Build-Test-Publish / build (linux/arm64) (push) Successful in 3m19s

This commit is contained in:
j
2026-03-28 11:56:11 +13:00
parent bea008d153
commit dafc0529f0
6 changed files with 271 additions and 1 deletions

View File

@@ -95,6 +95,12 @@ if [[ -d "${SERVICES_DIR}" ]]; then
ports="$ports_output"
fi
# -- Get template hash --
template_hash=""
if [[ -f "${service_dir}template.hash" ]]; then
template_hash=$(cat "${service_dir}template.hash" | tr -d '[:space:]')
fi
# -- Output JSON for this service --
if [[ "$first" == "true" ]]; then
first=false
@@ -108,6 +114,8 @@ if [[ -d "${SERVICES_DIR}" ]]; then
json_escape "$status"
echo -n '","ports":"'
json_escape "$ports"
echo -n '","template_hash":"'
json_escape "$template_hash"
echo -n '"}'
done
fi