Skip to content

Instantly share code, notes, and snippets.

@sravanthi17
Last active September 6, 2016 18:20
Show Gist options
  • Save sravanthi17/0f10eed6d4f91f6b59ae25d0f5f5b70b to your computer and use it in GitHub Desktop.
Save sravanthi17/0f10eed6d4f91f6b59ae25d0f5f5b70b to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo service openerp stop
sudo service bahmni-erp-connect stop
echo -e "Deteting the database"
psql -Upostgres -c "drop database openerp"
echo -e "Restoring the database"
createdb -Uopenerp -hlocalhost openerp
psql -Uopenerp -hlocalhost openerp < /opt/bahmni-erp/db-dump/openerp_clean_dump.sql
sudo service openerp start
sudo service bahmni-erp-connect start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment