From 52d5f0b4b2de7f418ca456b43df9a05f2ef90d67 Mon Sep 17 00:00:00 2001 From: Vojtech Pithart Date: Tue, 18 Jun 2019 12:55:51 +0200 Subject: [PATCH] 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