Created
January 18, 2016 17:03
-
-
Save djpillen/c7893ff7910e2f20e8c3 to your computer and use it in GitHub Desktop.
Reset ArchivesSpace for Archivagrant
This file contains hidden or 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
| #!/usr/bin/env bash | |
| echo "Stopping ArchivesSpace" | |
| service archivesspace stop | |
| echo "Dropping and recreating database" | |
| mysql -uroot -prootpwd -e "drop database archivesspace" | |
| mysql -uroot -prootpwd -e "create database archivesspace" | |
| mysql -uroot -prootpwd -e "grant all on archivesspace.* to 'as'@'localhost' identified by 'as123'" | |
| echo "Deleting indexer state" | |
| cd /home/vagrant/archivesspace/data | |
| rm -rf indexer_state | |
| rm -rf solr_backups | |
| rm -rf solr_index | |
| echo "Setting up database" | |
| cd /home/vagrant/archivesspace | |
| scripts/setup-database.sh | |
| echo "Starting ArchivesSpace" | |
| service archivesspace start | |
| echo "Applying ArchivesSpace defaults" | |
| cd /vagrant | |
| python archivesspace_defaults.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment