Skip to content

Commit

Permalink
Add CKAN core settings to update the displayed timezone when configur…
Browse files Browse the repository at this point in the history
…ing based on TZ envvar
  • Loading branch information
mjanez committed Nov 27, 2024
1 parent 47b7011 commit fba627b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/docker-entrypoint.d/01_setup_ckanext_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
echo "[docker-entrypoint.01_setup_ckanext_config] Clear index"
ckan -c $CKAN_INI search-index clear

# ckan: Update core settings
echo "[docker-entrypoint.01_setup_ckanext_config] Loading CKAN core settings in the CKAN config file"
ckan config-tool $CKAN_INI \
"ckan.display_timezone=$TZ"

# Rebuild index
echo "[docker-entrypoint.01_setup_ckanext_config] Rebuild index"
ckan -c $CKAN_INI search-index rebuild

0 comments on commit fba627b

Please sign in to comment.