Make RPMs to include pcp.conf and pool_hba.conf sample files.
authorBo Peng <pengbo@sraoss.co.jp>
Tue, 11 Aug 2020 09:17:42 +0000 (18:17 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Tue, 11 Aug 2020 09:17:42 +0000 (18:17 +0900)
src/pgpool.spec

index 4b16415fe6a8d37c9679425928d804cd94b5e756..4c4509a1303a6fe5e8e08a92f2851e695ed00335 100644 (file)
@@ -131,9 +131,9 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install -C src/sql/pgpool_adm
 
 install -d %{buildroot}%{_datadir}/%{short_name}
 install -d %{buildroot}%{_sysconfdir}/%{short_name}
-mv %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf
-mv %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf
-mv %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf
+cp %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pcp.conf
+cp %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pgpool.conf
+cp %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf.sample %{buildroot}%{_sysconfdir}/%{short_name}/pool_hba.conf
 touch %{buildroot}%{_sysconfdir}/%{short_name}/pool_passwd
 touch %{buildroot}%{_sysconfdir}/%{short_name}/pgpool_node_id
 
@@ -261,6 +261,8 @@ fi
 %{_sysconfdir}/%{short_name}/pgpool.conf.sample-slony
 %{_sysconfdir}/%{short_name}/pgpool.conf.sample-snapshot
 %{_sysconfdir}/%{short_name}/pgpool.conf.sample-stream
+%{_sysconfdir}/%{short_name}/pcp.conf.sample
+%{_sysconfdir}/%{short_name}/pool_hba.conf.sample
 %defattr(755,postgres,postgres,-)
 %{_sysconfdir}/%{short_name}/failover.sh.sample
 %{_sysconfdir}/%{short_name}/follow_master.sh.sample