2023-03-22 10:52:41 +01:00
|
|
|
#!/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')"
|
2023-03-22 18:03:33 +01:00
|
|
|
|
2023-04-02 01:30:43 +02:00
|
|
|
#TODO: Setup worker background
|
|
|
|
#echo "Set up CKAN jobs worker"
|
|
|
|
#ckan -c $CKAN_INI jobs worker default
|