reset elastic script (#264)
This commit is contained in:
11
scripts/reset-elastic.sh
Normal file
11
scripts/reset-elastic.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
echo "warning this will run queries on the triplestore and delete containers, you have 3 seconds to press ctrl+c"
|
||||
sleep 3
|
||||
docker-compose rm -fs elasticsearch search
|
||||
sudo rm -rf data/elasticsearch/
|
||||
docker-compose exec -T triplestore isql-v <<EOF
|
||||
SPARQL DELETE WHERE { GRAPH <http://mu.semte.ch/authorization> { ?s ?p ?o. } };
|
||||
exec('checkpoint');
|
||||
exit;
|
||||
EOF
|
||||
docker-compose up -d --remove-orphan
|
||||
Reference in New Issue
Block a user