From 53004724175669c3244da6f4274407ae0633e7f8 Mon Sep 17 00:00:00 2001 From: Alexander Overvoorde Date: Wed, 12 Feb 2020 20:16:43 +0100 Subject: [PATCH] Accept both the values enabled and 1 for boolean flags for backwards compatibility --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index d034918..ab7d659 100755 --- a/run.sh +++ b/run.sh @@ -79,7 +79,7 @@ if [ "$1" = "run" ]; then chown postgres:postgres /var/lib/postgresql -R # Configure Apache CORS - if [ "$ALLOW_CORS" == "enabled" ]; then + if [ "$ALLOW_CORS" == "enabled" ] || [ "$ALLOW_CORS" == "1" ]; then echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars fi @@ -93,7 +93,7 @@ if [ "$1" = "run" ]; then sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /usr/local/etc/renderd.conf # start cron job to trigger consecutive updates - if [ "$UPDATES" = "enabled" ]; then + if [ "$UPDATES" = "enabled" ] || [ "$UPDATES" = "1" ]; then /etc/init.d/cron start fi