Skip to content

Commit

Permalink
fix(supercronic)!: add PATH environment not passed by runuser
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Aug 28, 2024
1 parent 46d5a8b commit d2b4632
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 8.0/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fi

if [[ "${PHP_SUPERCRONIC_ENABLED,,}" =~ ^(yes|true|1)$ && -f "/etc/crontab" ]]; then
# shellcheck disable=SC2086
runuser -l daemon -c "/usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
runuser -l daemon -c "PATH=${PATH}; /usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
fi

#### newrelic
Expand Down
2 changes: 1 addition & 1 deletion 8.1/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fi

if [[ "${PHP_SUPERCRONIC_ENABLED,,}" =~ ^(yes|true|1)$ && -f "/etc/crontab" ]]; then
# shellcheck disable=SC2086
runuser -l daemon -c "/usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
runuser -l daemon -c "PATH=${PATH}; /usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
fi

#### newrelic
Expand Down
2 changes: 1 addition & 1 deletion 8.2/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fi

if [[ "${PHP_SUPERCRONIC_ENABLED,,}" =~ ^(yes|true|1)$ && -f "/etc/crontab" ]]; then
# shellcheck disable=SC2086
runuser -l daemon -c "/usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
runuser -l daemon -c "PATH=${PATH}; /usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
fi

#### newrelic
Expand Down
2 changes: 1 addition & 1 deletion 8.3/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fi

if [[ "${PHP_SUPERCRONIC_ENABLED,,}" =~ ^(yes|true|1)$ && -f "/etc/crontab" ]]; then
# shellcheck disable=SC2086
runuser -l daemon -c "/usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
runuser -l daemon -c "PATH=${PATH}; /usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
fi

#### newrelic
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fi

if [[ "${PHP_SUPERCRONIC_ENABLED,,}" =~ ^(yes|true|1)$ && -f "/etc/crontab" ]]; then
# shellcheck disable=SC2086
runuser -l daemon -c "/usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
runuser -l daemon -c "PATH=${PATH}; /usr/local/bin/supercronic ${PHP_SUPERCRONIC_FLAGS:-} /etc/crontab" &
fi

#### newrelic
Expand Down

0 comments on commit d2b4632

Please sign in to comment.