Fix: postgresql (not) starts after container restart
This commit is contained in:
parent
db5f6799f0
commit
52d5f0b4b2
3
run.sh
3
run.sh
@ -51,6 +51,9 @@ if [ "$1" = "run" ]; then
|
|||||||
# Clean /tmp
|
# Clean /tmp
|
||||||
rm -rf /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
|
||||||
|
Loading…
Reference in New Issue
Block a user