diff --git a/ckan/docker-entrypoint.d/02_setup_spatial.sh b/ckan/docker-entrypoint.d/02_setup_spatial.sh new file mode 100644 index 0000000..12045c5 --- /dev/null +++ b/ckan/docker-entrypoint.d/02_setup_spatial.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +if [[ $CKAN__PLUGINS == *"spatial_metadata"* ]]; then + echo "Configuring CKAN spatial ..." + + ckan config-tool $CKAN_INI "ckanext.spatial.common_map.type=Stadia.StamenTerrain" + ckan config-tool $CKAN_INI "ckanext.spatial.common_map.max_zoom=18" + # forse รจ da aggiungere un qualche tipo di key per production + +else + echo "Not configuring spatial, plugin not enabled." +fi