Rework configuration handling
This commit is contained in:
+7
-1
@@ -1,6 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source .configuration.sh
|
||||
|
||||
DB_ENVIRONMENT=$1
|
||||
if [ -z $DB_ENVIRONMENT ] ; then
|
||||
DB_ENVIRONMENT="default"
|
||||
fi
|
||||
|
||||
source env/$DB_ENVIRONMENT.conf
|
||||
|
||||
function add-version() {
|
||||
psql $PSQL_OPTS -c "update database_versions set is_active = false where is_active = true" $DB_NAME
|
||||
|
||||
Reference in New Issue
Block a user