From db5f6799f0a1b36cd66a6e06ebb478f7d8ad6420 Mon Sep 17 00:00:00 2001 From: Vojtech Pithart Date: Tue, 18 Jun 2019 12:26:15 +0200 Subject: [PATCH 1/2] Fix: apache (not) starts after container restart --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index a4bc1f5..a3245d0 100755 --- a/run.sh +++ b/run.sh @@ -48,6 +48,9 @@ if [ "$1" = "import" ]; then fi if [ "$1" = "run" ]; then + # Clean /tmp + rm -rf /tmp/* + # Initialize PostgreSQL and Apache CreatePostgressqlConfig service postgresql start From 52d5f0b4b2de7f418ca456b43df9a05f2ef90d67 Mon Sep 17 00:00:00 2001 From: Vojtech Pithart Date: Tue, 18 Jun 2019 12:55:51 +0200 Subject: [PATCH 2/2] Fix: postgresql (not) starts after container restart --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index a3245d0..247c15e 100755 --- a/run.sh +++ b/run.sh @@ -50,6 +50,9 @@ 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