]> git.parisson.com Git - timeside.git/commitdiff
fix postgresql init
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 6 Nov 2014 23:48:25 +0000 (00:48 +0100)
committerThomas Fillon <thomas@parisson.com>
Mon, 15 Dec 2014 16:18:58 +0000 (17:18 +0100)
Dockerfile

index 1b8cbec1266975fa113c69f6b147248320e05ba7..4f5bc11873b9a29305633f1bfd9d363cf6c94740 100644 (file)
@@ -34,10 +34,10 @@ run pip install uwsgi ipython
 add . /opt/TimeSide
 
 # setup postgresql DB
-run /etc/init.d/postgresql start
 user postgres
-run psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';"
-run createdb -O docker docker
+run /etc/init.d/postgresql start &&\
+       psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
+       createdb -O docker docker
 user root
 
 # setup all the configfiles