Last active
October 24, 2018 12:34
-
-
Save escowles/2dbad4ef0e0eb82731b6b6d50068d7eb to your computer and use it in GitHub Desktop.
fedora-wiper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in /var/lib/tomcat7/fcrepo4-data/fedora.binary.directory/*; do | |
echo $i | |
rm -rf $i | |
done | |
rm -rf /var/lib/tomcat7/fcrepo4-data/[cf]* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
psql -p 5433 -c 'drop table modeshape_repository' fcrepo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HOST="localhost:8983" | |
XML="<delete><query>*:*</query></delete>" | |
CORE="blacklight" | |
curl http://$HOST/solr/$CORE/update?commit=true -H "Content-Type: text/xml" --data-binary "$XML" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment