Author: justi9
Date: 2008-01-24 15:18:04 -0500 (Thu, 24 Jan 2008)
New Revision: 1603
Modified:
mgmt/bin/devel-reload-database
Log:
Makes the reload script work with the dist deployed db location.
Modified: mgmt/bin/devel-reload-database
===================================================================
--- mgmt/bin/devel-reload-database 2008-01-24 18:34:12 UTC (rev 1602)
+++ mgmt/bin/devel-reload-database 2008-01-24 20:18:04 UTC (rev 1603)
@@ -1,11 +1,11 @@
#!/bin/bash
-if [ -z "$1" ]; then
- echo "Usage: devel-reload-database DATABASE-NAME"
+if [ -z "$1" -o -z "$2" ]; then
+ echo "Usage: devel-reload-database DATABASE-USER DATABASE-NAME"
exit 1
fi
-psql -d "$1" -c "drop schema public cascade; create schema public"
-psql -d "$1" -f "$DEVEL_HOME"/mint/python/mint/schema.sql
+psql -U "$1" -d "$2" -c "drop schema public cascade; create
schema public"
+psql -U "$1" -d "$2" -f "$DEVEL_HOME"/mint/sql/schema.sql
-python "$DEVEL_HOME"/cumin/python/cumin/demo.py
postgresql://localhost/"$1"
+python "$DEVEL_HOME"/cumin/python/cumin/demo.py
postgresql://"$1"@localhost/"$2"
Show replies by date