Script for connectivity check added
This commit is contained in:
@@ -10,6 +10,7 @@ Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}-systemd
|
||||
Source2: %{name}-config.json
|
||||
Source3: %{name}-sysconfig
|
||||
Source4: check-port-connection.sh
|
||||
|
||||
%define user %name
|
||||
%define group %name
|
||||
@@ -28,6 +29,7 @@ install -D %name %{buildroot}%{_bindir}/%name
|
||||
install -D %{S:1} %{buildroot}%{_unitdir}/%name.service
|
||||
install -D %{S:2} %{buildroot}%{_sysconfdir}/%name/config.json
|
||||
install -D %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/%name
|
||||
install -D %{S:4} %{buildroot}/opt/jobs/check-port-connection.sh
|
||||
install -d %{buildroot}%{_rundir}/%name
|
||||
install -d %{buildroot}%{_var}/ansible
|
||||
|
||||
@@ -63,6 +65,7 @@ exit 0
|
||||
%files
|
||||
%license LICENSE
|
||||
%attr(755,%user,%group) %{_bindir}/%name
|
||||
%attr(755,root,root) /opt/jobs/check-port-connection.sh
|
||||
%attr(644,%user,%group) %{_unitdir}/%name.service
|
||||
%attr(640,%user,%group) %config(noreplace) %{_sysconfdir}/%name/config.json
|
||||
%attr(640,%user,%group) %config %{_sysconfdir}/sysconfig/%name
|
||||
@@ -70,5 +73,9 @@ exit 0
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 20 2018 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Pre exec script added for systemctl to check db availability.
|
||||
|
||||
* Sun Aug 12 2018 Daniel Steiner <daniel.steiner@greenmail.ch>
|
||||
- Initial build for Fedora 28
|
||||
|
||||
|
||||
Reference in New Issue
Block a user