From 8bed96862eb538c95d1c6f6c8e0555b3e98c1fd4 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 3 Apr 2018 15:28:02 +0800 Subject: [PATCH] Copy postgres config folders as well. --- templates/postgres.10.template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/postgres.10.template.yml b/templates/postgres.10.template.yml index 2c2771e..b6c1abd 100644 --- a/templates/postgres.10.template.yml +++ b/templates/postgres.10.template.yml @@ -63,7 +63,7 @@ run: /etc/init.d/postgresql stop rm -fr /shared/postgres_data/postmaster.pid cd ~postgres - cp -p /etc/postgresql/${PG_MAJOR_OLD}/main/* /shared/postgres_data + cp -pr /etc/postgresql/${PG_MAJOR_OLD}/main/* /shared/postgres_data echo >> /shared/postgres_data/postgresql.conf echo "data_directory = '/shared/postgres_data'" >> /shared/postgres_data/postgresql.conf SUCCESS=true -- 2.25.1