diff scripts/import-usps.sh @ 73:d2c44193fbaa

explictly remove db's before import
author smith@nwoca.org
date Mon, 21 Mar 2016 22:17:55 +0100
parents e155908fa039
children 6f8a77d8d58d
line wrap: on
line diff
--- a/scripts/import-usps.sh	Fri Mar 18 01:45:42 2016 +0100
+++ b/scripts/import-usps.sh	Mon Mar 21 22:17:55 2016 +0100
@@ -1,6 +1,9 @@
 #!/bin/bash
 
+source "$( dirname "${BASH_SOURCE[0]}")/.functions.sh"
+
 docker-compose stop uspsapp uspsdb
+resetDbVolume uspsdb
 docker-compose rm -vf uspsapp uspsdb
 
 export IMP_IRN=${IMP_IRN}
@@ -16,4 +19,3 @@
 docker-compose -f docker-compose.yml -f /ssdt/compose/preview/import.yml rm -f uspsimport
 # start application
 docker-compose up -d uspsapp
-