Skip to content

Commit a4edba3

Browse files
authored
Merge pull request #2 from danceb/main
Cleaning ENV and exporting them for the use with crontab
2 parents 78098cc + ad4ef05 commit a4edba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ ENV SLEEP_INTERVAL=1
2020
# The default URL of the QGIS server to send requests to
2121
ENV DEFAULT_QGIS_SERVER_URL="http://qwc-qgis-server/ows/"
2222

23-
# Connection URL for configuration database to read QGIS project files
23+
# Postgres service configuration file including a [qgisprojects] service to read QGIS project files from database.
2424
ENV PGSERVICEFILE="/srv/pg_service.conf"
25-
ENV CONFIG_DB_URL="postgresql:///?service=qgisprojects"
2625
# The name of the DB schema which stores the project files in a table 'qgis_projects'.
2726
ENV PG_DB_SCHEMA="qwc_config"
2827

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export QGS_EXT=${QGS_EXT}
2424
export FCGI_INSTANCES=${FCGI_INSTANCES}
2525
export SLEEP_INTERVAL=${SLEEP_INTERVAL}
2626
export DEFAULT_QGIS_SERVER_URL=${DEFAULT_QGIS_SERVER_URL}
27+
export PGSERVICEFILE=${PGSERVICEFILE}
2728
export PG_DB_SCHEMA=${PG_DB_SCHEMA}
2829
EOF
2930
echo "$CRON_SCHEDULE . $HOME/.cron_env; /app/qgs_cache_preseed.sh >/proc/1/fd/1 2>/proc/1/fd/2" | crontab -

0 commit comments

Comments
 (0)