Skip to content

Commit

Permalink
simplify cron expression
Browse files Browse the repository at this point in the history
Signed-off-by: Josh McCullough <[email protected]>
  • Loading branch information
JoshMcCullough authored Oct 23, 2024
1 parent b6a8386 commit c4a8fb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ suitecrm_initialize() {
# https://docs.suitecrm.com/blog/scheduler-jobs/
local -a cron_cmd=("${PHP_BIN_DIR}/php" "${SUITECRM_BASE_DIR}/public/legacy/cron.php")
if am_i_root; then
generate_cron_conf "suitecrm" "${cron_cmd[*]} > /dev/null 2>&1" --run-as "$WEB_SERVER_DAEMON_USER" --schedule "*/1 * * * *"
generate_cron_conf "suitecrm" "${cron_cmd[*]} > /dev/null 2>&1" --run-as "$WEB_SERVER_DAEMON_USER" --schedule "* * * * *"
else
warn "Skipping cron configuration for SuiteCRM because of running as a non-root user"
fi
Expand Down

0 comments on commit c4a8fb0

Please sign in to comment.