Skip to content

Commit dcec9c2

Browse files
committed
Do not overwrite the START_CRON variable if already exists
1 parent 395863e commit dcec9c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ 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}")"
22-
export START_CRON
21+
if [ ! -n "${START_CRON:-}" ]; then
22+
START_CRON="$(convert_to_boolean_string "${START_MODE_CRON:-false}")"
23+
export START_CRON
24+
fi
2325

2426
APP_ENDPOINT_REWRITE="$(convert_to_boolean_string "${APP_ENDPOINT_REWRITE-true}")"
2527
export APP_ENDPOINT_REWRITE

0 commit comments

Comments
 (0)