Skip to content

Commit 5300472

Browse files
committed
Accept both the values enabled and 1 for boolean flags for backwards compatibility
1 parent f9a29fb commit 5300472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if [ "$1" = "run" ]; then
7979
chown postgres:postgres /var/lib/postgresql -R
8080

8181
# Configure Apache CORS
82-
if [ "$ALLOW_CORS" == "enabled" ]; then
82+
if [ "$ALLOW_CORS" == "enabled" ] || [ "$ALLOW_CORS" == "1" ]; then
8383
echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars
8484
fi
8585

@@ -93,7 +93,7 @@ if [ "$1" = "run" ]; then
9393
sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /usr/local/etc/renderd.conf
9494

9595
# start cron job to trigger consecutive updates
96-
if [ "$UPDATES" = "enabled" ]; then
96+
if [ "$UPDATES" = "enabled" ] || [ "$UPDATES" = "1" ]; then
9797
/etc/init.d/cron start
9898
fi
9999

0 commit comments

Comments
 (0)