From 553889e62519b692eaff5d070708e841ac9b52ce Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Fri, 2 Oct 2015 11:14:24 +0000 Subject: [PATCH] Fixes on deployment --- orchestra/management/commands/setuppostgres.py | 2 +- scripts/containers/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/management/commands/setuppostgres.py b/orchestra/management/commands/setuppostgres.py index cae7878f..799c0a91 100644 --- a/orchestra/management/commands/setuppostgres.py +++ b/orchestra/management/commands/setuppostgres.py @@ -48,7 +48,7 @@ class Command(BaseCommand): help = 'Setup PostgreSQL database.' def run_postgres(self, cmd, *args, **kwargs): - return run('su postgres -c "psql -c \\"%s\\""' % cmd, *args, **kwargs) + return run('su postgres -c "psql -c \\"%s\\""' % cmd, *args, display=True, **kwargs) @check_root def handle(self, *args, **options): diff --git a/scripts/containers/Dockerfile b/scripts/containers/Dockerfile index 9f9b3804..a2bc2a2d 100644 --- a/scripts/containers/Dockerfile +++ b/scripts/containers/Dockerfile @@ -23,6 +23,6 @@ RUN export TERM=xterm; curl https://raw.githubusercontent.com/glic3rinu/django-o RUN apt-get clean RUN useradd orchestra --shell /bin/bash && \ - echo "orchestra:orchestra" | chpasswd + { echo "orchestra:orchestra" | chpasswd; } && \ mkhomedir_helper orchestra && \ adduser orchestra sudo