From b7007903f0af22ef076c2b56edc8f31ef98a9614 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 2 Oct 2015 09:39:58 +0000 Subject: [PATCH] Fixes on deployment --- orchestra/management/commands/setuppostgres.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orchestra/management/commands/setuppostgres.py b/orchestra/management/commands/setuppostgres.py index ee4471ee..2f6a7250 100644 --- a/orchestra/management/commands/setuppostgres.py +++ b/orchestra/management/commands/setuppostgres.py @@ -30,7 +30,7 @@ class Command(BaseCommand): default=defaults.get('DB_USER', 'orchestra'), help='Specifies the database to create.'), make_option('--db_password', dest='db_password', - default=defaults.get('PASSWORD'), + default=defaults.get('PASSWORD', ''), help='Specifies the database password, random if not specified.'), make_option('--db_host', dest='db_host', default=defaults.get('HOST', 'localhost'), @@ -48,7 +48,6 @@ class Command(BaseCommand): help = 'Setup PostgreSQL database.' def run_postgres(self, cmd, *args, **kwargs): - cmd = cmd.replace("'", "\\'") return run('su postgres -c "psql -c \\"%s\\""' % cmd, *args, display=True, **kwargs) @check_root