diff --git a/scripts/first_run.sh b/scripts/first_run.sh index 253f2ab..a9ff89a 100644 --- a/scripts/first_run.sh +++ b/scripts/first_run.sh @@ -13,7 +13,7 @@ pre_start_action() { echo "Initializing PostgreSQL at $DATA_DIR" # Copy the data that we generated within the container to the empty DATA_DIR. - cp -R /var/lib/postgresql/9.3/main/* $DATA_DIR + cp -aR /var/lib/postgresql/9.3/main/* $DATA_DIR fi # Ensure postgres owns the DATA_DIR