Skip to content

Commit

Permalink
Fix resource migration command
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolidori committed Oct 2, 2024
1 parent 0d90ad0 commit 943649b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migration/upgrade_databases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ echo ""

docker cp ${CKAN_DATA_BACKUP_FILE} ${CKAN_SERVICE_ID}:/${CKAN_DATA_BACKUP_FILE}

docker-compose ${COMPOSE_FILES} exec -T ${CKAN_SERVICE} bash -c "tar -xzf /ckan_data.tar.gz -C /data && cp -r /data/* /var/lib/ckan/data/ && chown -R ckan:ckan /var/lib/ckan/data"
docker-compose ${COMPOSE_FILES} exec -T ${CKAN_SERVICE} bash -c "mkdir -p /var/lib/ckan/data && tar -xzf /ckan_data.tar.gz --strip-components=1 -C /var/lib/ckan/data && chown -R ckan:ckan /var/lib/ckan/data"

echo ""
echo "### Data files restored to CKAN."
Expand Down

0 comments on commit 943649b

Please sign in to comment.