ec327efd564f4d8587dc5814edf4e568ad2bea08
[discourse_docker.git] / image / discourse_dev / ensure-database
1 #!/bin/bash
2
3 if [ ! -f /shared/postgres_data/PG_VERSION ]; then
4 mkdir -p /shared/postgres_data
5 chown -R postgres:postgres /shared/postgres_data
6 chmod 700 /shared/postgres_data
7 cp -R /shared/postgres_data_orig/* /shared/postgres_data
8 chown -R postgres:postgres /shared/postgres_data
9 chmod 700 /shared/postgres_data
10 fi