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