Commit cc7b7e05 authored by Jordi Mallach's avatar Jordi Mallach 🔥
Browse files

There is no need to provision the database.

parent 580d2dab
......@@ -38,7 +38,6 @@ RUN /srv/etherpad/etherpad/bin/installDeps.sh
# Add extra conf files and scripts
ADD docker/settings.json.collabora /srv/etherpad/etherpad/settings.json
ADD docker/supervisor.conf /etc/supervisor/supervisor.conf
ADD docker/init_pgsql_db /srv/etherpad/bin
ADD docker/run_etherpad /srv/etherpad/bin
EXPOSE 9001
......
#/bin/sh
set -e
if ! sudo -u postgres psql -l |grep "^ etherpad "; then
sudo -u postgres createuser etherpad
echo "ALTER USER etherpad WITH PASSWORD 'eet4kaeYpoL9Aesh';" |sudo -u postgres psql
echo "CREATE DATABASE etherpad OWNER etherpad;" | sudo -u postgres psql
fi
......@@ -2,5 +2,4 @@
set -e
/srv/etherpad/bin/init_pgsql_db
supervisord -c /etc/supervisor/supervisor.conf -n
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment