2023-03-17 11:09:20 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-08-09 10:51:04 +02:00
|
|
|
# Update ckanext-scheming and ckanext-scheming_dcat settings defined in the env var
|
2024-02-21 09:16:47 +01:00
|
|
|
echo "[docker-entrypoint.02_setup_scheming] Clear index"
|
2023-05-07 13:03:20 +02:00
|
|
|
ckan -c $CKAN_INI search-index clear
|
|
|
|
|
2024-02-21 09:16:47 +01:00
|
|
|
echo "[docker-entrypoint.02_setup_scheming] Loading ckanext-scheming and ckanext-scheming_dcat settings into ckan.ini"
|
2023-03-17 11:09:20 +01:00
|
|
|
ckan config-tool $CKAN_INI \
|
2023-08-09 10:51:04 +02:00
|
|
|
"scheming.dataset_schemas=$CKANEXT__SCHEMING_DCAT_DATASET_SCHEMA" \
|
|
|
|
"scheming.group_schemas=$CKANEXT__SCHEMING_DCAT_GROUP_SCHEMAS" \
|
|
|
|
"scheming.organization_schemas=$CKANEXT__SCHEMING_DCAT_ORGANIZATION_SCHEMAS" \
|
|
|
|
"scheming.presets=$CKANEXT__SCHEMING_DCAT_PRESETS" \
|
|
|
|
"scheming_dcat.facet_list=$CKANEXT__SCHEMING_DCAT_FACET_LIST" \
|
|
|
|
"scheming_dcat.organization_custom_facets=$CKANEXT__SCHEMING_DCAT_ORGANIZATION_CUSTOM_FACETS" \
|
2023-09-02 11:06:40 +02:00
|
|
|
"scheming_dcat.group_custom_facets=$CKANEXT__SCHEMING_DCAT_GROUP_CUSTOM_FACETS" \
|
|
|
|
"scheming_dcat.geometadata_base_uri=$CKANEXT__SCHEMING_DCAT_GEOMETADATA_BASE_URI"
|
2023-05-07 13:03:20 +02:00
|
|
|
|
2024-02-21 09:16:47 +01:00
|
|
|
echo "[docker-entrypoint.02_setup_scheming] Rebuild index"
|
2023-05-07 13:03:20 +02:00
|
|
|
ckan -c $CKAN_INI search-index rebuild
|