Add entrypoints
- ckanext-dcat - previews - ckanext-xloader
This commit is contained in:
parent
c61176e20c
commit
4985c8befc
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Add ckanext-dcat settings to the CKAN config file
|
||||
echo "Loading ckanext-dcat settings in the CKAN config file"
|
||||
ckan config-tool $CKAN_INI \
|
||||
"ckanext.dcat.base_uri = $CKANEXT__DCAT__BASE_URI" \
|
||||
"ckanext.dcat.rdf.profiles = $CKANEXT__DCAT__RDF_PROFILES"
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
#TODO: Correct views.
|
||||
|
||||
# Add CKAN Resource views to the CKAN config file
|
||||
echo "Loading resource views in the CKAN config file"
|
||||
ckan config-tool $CKAN_INI \
|
||||
"ckan.views.default_views = $CKAN__VIEWS__DEFAULT_VIEWS" \
|
||||
"ckan.preview.json_formats = $CKAN__PREVIEW__JSON_FORMATS" \
|
||||
"ckan.preview.xml_formats = $CKAN__PREVIEW__XML_FORMATS" \
|
||||
"ckan.preview.text_formats = $CKAN__PREVIEW__TEXT_FORMATS" \
|
||||
"ckan.preview.loadable = $CKAN__PREVIEW__LOADABLE"
|
||||
|
||||
# Add CKAN Resource geoviews to the CKAN config file
|
||||
echo "Loading geoviews in the CKAN config file"
|
||||
ckan config-tool $CKAN_INI \
|
||||
"ckanext.geoview.ol_viewer.formats = $CKANEXT__GEOVIEW__OL_VIEWER__FORMATS" \
|
||||
"ckanext.geoview.shp_viewer.srid = $CKANEXT__GEOVIEW__SHP_VIEWER__SRID" \
|
||||
"ckanext.geoview.shp_viewer.encoding = $CKANEXT__GEOVIEW__SHP_VIEWER__ENCODING" \
|
||||
"ckanext.geoview.geojson.max_file_size = $CKANEXT__GEOVIEW__GEOJSON__MAX_FILE_SIZE"
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Add ckanext.xloader.api_token to the CKAN config file
|
||||
echo "Loading ckanext-xloader settings in the CKAN config file"
|
||||
ckan config-tool $CKAN_INI \
|
||||
"ckanext.xloader.api_token = xxx" \
|
||||
"ckanext.xloader.jobs_db.uri = $CKANEXT__XLOADER__JOBS__DB_URI"
|
||||
|
||||
# Create ckanext-xloader API_TOKEN
|
||||
echo "Set up ckanext.xloader.api_token in the CKAN config file"
|
||||
ckan config-tool $CKAN_INI "ckanext.xloader.api_token = $(ckan -c $CKAN_INI user token add ckan_admin xloader | tail -n 1 | tr -d '\t')"
|
Loading…
Reference in New Issue