Commit | Line | Data |
---|---|---|
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 |