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
commit 4b062b6ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
run.sh
View File

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