Merge pull request #38 from vpithart/fix-container-restarts

Fix: proper startup after docker and/or container restarts
This commit is contained in:
Alexander Overvoorde
2019-06-18 18:34:41 +02:00
committed by GitHub

6
run.sh
View File

@@ -48,6 +48,12 @@ if [ "$1" = "import" ]; then
fi
if [ "$1" = "run" ]; then
# Clean /tmp
rm -rf /tmp/*
# Fix postgres data privileges
chown postgres:postgres /var/lib/postgresql -R
# Initialize PostgreSQL and Apache
CreatePostgressqlConfig
service postgresql start