Author: justi9
Date: 2009-08-31 16:29:56 -0400 (Mon, 31 Aug 2009)
New Revision: 3605
Modified:
mgmt/trunk/mint/bin/mint-database
Log:
Don't ignore failed db commands
Modified: mgmt/trunk/mint/bin/mint-database
===================================================================
--- mgmt/trunk/mint/bin/mint-database 2009-08-31 20:17:35 UTC (rev 3604)
+++ mgmt/trunk/mint/bin/mint-database 2009-08-31 20:29:56 UTC (rev 3605)
@@ -41,15 +41,15 @@
;;
create)
check-basics
- su - postgres -c "createuser --superuser cumin || :"
- su - postgres -c "createdb --owner=cumin cumin || :"
+ su - postgres -c "createuser --superuser cumin"
+ su - postgres -c "createdb --owner=cumin cumin"
mint-admin load-schema
echo "The database is created"
;;
destroy)
check-basics
- su - postgres -c "dropdb cumin || :"
- su - postgres -c "dropuser cumin || :"
+ su - postgres -c "dropdb cumin"
+ su - postgres -c "dropuser cumin"
echo "The database is destroyed"
;;
*)
Show replies by date