Skip to content

Commit

Permalink
Set xloader api token in ckan.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Jan 22, 2024
1 parent 499d409 commit 5648e17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/docker-entrypoint.d/02_setup_dbca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CKAN__PLUGINS=$(grep '^ckan\.plugins' $APP_DIR/config/dbca.ini | cut -d'=' -f2)
echo "CKAN__PLUGINS: $CKAN__PLUGINS"

if [[ $CKAN__PLUGINS == *"xloader"* ]]; then
CKAN_INI=$APP_DIR/ckan.ini
# Add ckan.xloader.api_token to the CKAN config file (updated with corrected value later)
echo "Setting a temporary value for ckanext.xloader.api_token"
ckan config-tool $CKAN_INI "ckanext.xloader.api_token=$(ckan -c $CKAN_INI user token add $CKAN_SYSADMIN_NAME xloader | tail -n 1 | tr -d '\t')"
Expand Down

0 comments on commit 5648e17

Please sign in to comment.