fix: dashboard and hosts count SSH and RDP daily reports
analytics-a4: daily_reports_24h uses report.daily.*; sac-deploy enables timers Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -122,4 +122,22 @@ else
|
||||
die "${SERVICE_NAME} запущен, но /health не ответил — journalctl -u ${SERVICE_NAME} -n 80 --no-pager"
|
||||
fi
|
||||
|
||||
for aux in sac-retention sac-daily-report; do
|
||||
for suffix in service timer; do
|
||||
src="${APP_ROOT}/deploy/systemd/${aux}.${suffix}"
|
||||
dst="/etc/systemd/system/${aux}.${suffix}"
|
||||
if [ -f "${src}" ]; then
|
||||
if [ ! -f "${dst}" ] || ! cmp -s "${src}" "${dst}"; then
|
||||
log "Обновление ${dst}"
|
||||
cp "${src}" "${dst}"
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -f "/etc/systemd/system/${aux}.timer" ]; then
|
||||
systemctl enable "${aux}.timer" 2>/dev/null || true
|
||||
systemctl start "${aux}.timer" 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
|
||||
log "Готово."
|
||||
|
||||
Reference in New Issue
Block a user