Importing into a fresh repository.
Showing
4 changed files
with
37 additions
and
0 deletions
Dockerfile
0 → 100644
docker-compose.yml
0 → 100644
1 | #!/bin/bash | ||
2 | |||
3 | set -e | ||
4 | data_dir=/var/lib/postgresql | ||
5 | |||
6 | if [[ -d $data_dir ]]; then | ||
7 | declare -a files=( | ||
8 | $(find "$data_dir" -mindepth 1 -maxdepth 1 -not -name lost+found 2>/dev/null) | ||
9 | ) | ||
10 | if [[ ${#files[*]} -eq 0 ]]; then | ||
11 | tar -zxf /var/lib/docker-init/data/postgresql-server.data.tar.gz -C "$data_dir" | ||
12 | fi | ||
13 | fi | ||
14 |
1 | listen_addresses = * |
-
Please register or sign in to post a comment