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
|
|
|
|
echo "Set up ckanext-scheming_dcat. Clear index"
|
2023-05-07 13:03:20 +02:00
|
|
|
ckan -c $CKAN_INI search-index clear
|
|
|
|
|
2023-08-09 10:51:04 +02:00
|
|
|
echo "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" \
|
|
|
|
"scheming_dcat.group_custom_facets=$CKANEXT__SCHEMING_DCAT_GROUP_CUSTOM_FACETS"
|
2023-05-07 13:03:20 +02:00
|
|
|
|
2023-08-09 10:51:04 +02:00
|
|
|
echo "ckanext-scheming_dcat. Rebuild index"
|
2023-05-07 13:03:20 +02:00
|
|
|
ckan -c $CKAN_INI search-index rebuild
|