Merge pull request #38 from vpithart/fix-container-restarts
Fix: proper startup after docker and/or container restarts
This commit is contained in:
commit
4b062b6ce2
6
run.sh
6
run.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user