From 0294a9a1941612a34f44f4468150fd9270c2b8de Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Wed, 9 Oct 2024 14:01:06 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Initialize=20DOI=20database?= =?UTF-8?q?=20in=20entrypoint=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add DOI database initialization command to the CKAN entrypoint script. This ensures the DOI database is set up correctly during container start-up. --- ckan/docker-entrypoint.d/01_setup_ckanext_config.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ckan/docker-entrypoint.d/01_setup_ckanext_config.sh b/ckan/docker-entrypoint.d/01_setup_ckanext_config.sh index e09d9ae..0036e16 100644 --- a/ckan/docker-entrypoint.d/01_setup_ckanext_config.sh +++ b/ckan/docker-entrypoint.d/01_setup_ckanext_config.sh @@ -83,6 +83,10 @@ ckan config-tool $CKAN_INI \ "ckanext.pages.group_menu=$CKANEXT__PAGES__GROUP_MENU" \ "ckanext.pages.organization_menu=$CKANEXT__PAGES__ORGANIZATION_MENU" +# ckanext-pages: Add pages CKAN config file +echo "[docker-entrypoint.01_setup_ckanext_config] Initialization DOI database" +ckan -c $CKAN_INI doi initdb + # Rebuild index echo "[docker-entrypoint.01_setup_ckanext_config] Rebuild index" -ckan -c $CKAN_INI search-index rebuild \ No newline at end of file +ckan -c $CKAN_INI search-index rebuild