purge.sh: Delete repo first, then user
This commit is contained in:
parent
0ef02f4e7d
commit
1f71c8d4b1
1 changed files with 3 additions and 2 deletions
|
|
@ -51,11 +51,12 @@ dockerized_mysql -e "DROP USER IF EXISTS \`${MYSQL_USER}\`@\`%\`;"
|
||||||
dockerized_mysql -e "FLUSH PRIVILEGES;"
|
dockerized_mysql -e "FLUSH PRIVILEGES;"
|
||||||
|
|
||||||
# Clear the GraphDB repository.
|
# Clear the GraphDB repository.
|
||||||
|
log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'"
|
||||||
|
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/repositories/$GRAPHDB_REPO/
|
||||||
|
|
||||||
log_info " => Deleting GraphDB user '$GRAPHDB_USER'"
|
log_info " => Deleting GraphDB user '$GRAPHDB_USER'"
|
||||||
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/security/user/$GRAPHDB_USER/
|
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/security/user/$GRAPHDB_USER/
|
||||||
|
|
||||||
log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'"
|
|
||||||
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/repositories/$GRAPHDB_REPO/
|
|
||||||
|
|
||||||
# Delete the directory
|
# Delete the directory
|
||||||
log_info " => Deleting '$INSTANCE_BASE_DIR'"
|
log_info " => Deleting '$INSTANCE_BASE_DIR'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue