Skip to content

Commit

Permalink
Merge pull request #31 from lukecampbell/clear-harvests
Browse files Browse the repository at this point in the history
Adds script to clear all harvests
  • Loading branch information
lukecampbell authored Apr 20, 2017
2 parents fab62a1 + b885dfd commit 0a0c28b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/scripts/clear-harvests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
HARVEST="$CKAN_HOME/bin/paster --plugin=ckanext-harvest harvester -c $CKAN_CONFIG/ckan.ini"
for source in $($HARVEST sources | grep 'Source id' | awk '{print $3}'); do
$HARVEST clearsource $source
done

$HARVEST job-all

0 comments on commit 0a0c28b

Please sign in to comment.