Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-02 11:14:24 +00:00
parent 4173d7de27
commit 553889e625
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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