diff --git a/Dockerfile b/Dockerfile index 3c047a5..20e51fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ RUN git clone https://github.com/th3r00t/pyShelf.git /srv/http && \ # RUN sudo -u postgres psql -f create_db.sql # RUN gunicorn pyShelf.wsgi 8000:8000 EXPOSE 80 22 8000 -CMD ["sh", "-c","entry.sh"] +CMD ["sh", "-c","/srv/http/entry.sh"] diff --git a/create_db.sql b/create_db.sql index 9308ad0..0ffee21 100755 --- a/create_db.sql +++ b/create_db.sql @@ -1 +1 @@ -CREATE DATABASE 'pyshelf'; CREATE USER 'pyshelf' WITH PASSWORD 'pyshelf'; GRANT ALL PRIVILEGES ON DATABASE 'pyshelf' TO 'pyshelf'; +CREATE DATABASE "pyshelf"; CREATE USER "pyshelf" WITH PASSWORD "pyshelf"; GRANT ALL PRIVILEGES ON DATABASE "pyshelf" TO "pyshelf";