mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
11 lines
335 B
Bash
Executable File
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
|