Skip to content

Commit 4c00aaa

Browse files
authored
Merge pull request #419 from continuouspipe/hotfix/do-not-override-start-cron
Do not overwrite the `START_CRON` variable if already exists
2 parents 395863e + 16844ed commit 4c00aaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

php/shared/usr/local/share/env/40-stack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export APP_GROUP=${APP_GROUP:-www-data}
1818
export START_MODE=${START_MODE:-web}
1919
declare "START_MODE_${START_MODE^^}=true"
2020

21-
START_CRON="$(convert_to_boolean_string "${START_MODE_CRON:-false}")"
21+
START_CRON="$(convert_to_boolean_string "${START_CRON:-${START_MODE_CRON:-false}}")"
2222
export START_CRON
2323

2424
APP_ENDPOINT_REWRITE="$(convert_to_boolean_string "${APP_ENDPOINT_REWRITE-true}")"

ubuntu/16.04/etc/confd/templates/supervisor/cron.conf.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ stdout_logfile_maxbytes=0
55
stderr_logfile=/dev/stderr
66
stderr_logfile_maxbytes=0
77
loglevel = warn
8+
{{ if not (eq "true" (getenv "NON_PRIVILEGED_USER")) }}
89
user = root
10+
{{ end }}
911
autostart = {{ getenv "START_CRON" }}
1012
autorestart = true
1113
priority = 5
12-

0 commit comments

Comments
 (0)