Files
NetAlertX/install/production-filesystem/services/scripts/cron_script.sh
2025-11-17 00:20:08 +00:00

11 lines
335 B
Bash
Executable File

#!/bin/bash
# If cron_restart_backend exists in the file LOG_EXECUTION_QUEUE, then
# call the restart backend script and remove the line from the file
# and remove the entry
if grep -q "cron_restart_backend" "${LOG_EXECUTION_QUEUE}"; then
/services/start-backend.sh &
sed -i '/cron_restart_backend/d' "${LOG_EXECUTION_QUEUE}"
fi