Include galera script and config only on systemd-enabled system

This commit is contained in:
Honza Horak 2016-07-15 10:51:10 +02:00
parent 9291dfdbbe
commit 4cf445442f

View File

@ -1109,9 +1109,11 @@ fi
%files server-galera %files server-galera
%doc Docs/README.wsrep %doc Docs/README.wsrep
%license LICENSE.clustercheck %license LICENSE.clustercheck
%{_bindir}/galera_new_cluster
%{_bindir}/clustercheck %{_bindir}/clustercheck
%if %{with init_systemd}
%{_bindir}/galera_new_cluster
%{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf %{_datadir}/%{pkg_name}/systemd/use_galera_new_cluster.conf
%endif
%config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf %config(noreplace) %{_sysconfdir}/my.cnf.d/galera.cnf
%attr(0640,root,root) %ghost %config(noreplace) %{_sysconfdir}/sysconfig/clustercheck %attr(0640,root,root) %ghost %config(noreplace) %{_sysconfdir}/sysconfig/clustercheck
%{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp %{_datadir}/selinux/packages/%{name}/%{name}-server-galera.pp