* Fixed a few bugs in the .spec file.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 5 years ago
parent c68d0a2920
commit ffceb2312d
  1. 17
      rpm/SPECS/anvil.spec

@ -169,6 +169,7 @@ mkdir -p %{buildroot}/%{_sbindir}/scancore-agents/
mkdir -p %{buildroot}/%{_sysconfdir}/anvil/ mkdir -p %{buildroot}/%{_sysconfdir}/anvil/
mkdir -p %{buildroot}/%{_localstatedir}/www/ mkdir -p %{buildroot}/%{_localstatedir}/www/
mkdir -p %{buildroot}/%{_usr}/share/anvil/ mkdir -p %{buildroot}/%{_usr}/share/anvil/
mkdir -p %{buildroot}/%{_usr}/lib/ocf/resource.d/alteeve
install -d -p Anvil %{buildroot}/%{_datadir}/perl5/ install -d -p Anvil %{buildroot}/%{_datadir}/perl5/
install -d -p html %{buildroot}/%{_localstatedir}/www/ install -d -p html %{buildroot}/%{_localstatedir}/www/
install -d -p cgi-bin %{buildroot}/%{_localstatedir}/www/ install -d -p cgi-bin %{buildroot}/%{_localstatedir}/www/
@ -183,6 +184,7 @@ cp -R -p scancore-agents %{buildroot}/%{_sbindir}/
cp -R -p anvil.conf %{buildroot}/%{_sysconfdir}/anvil/ cp -R -p anvil.conf %{buildroot}/%{_sysconfdir}/anvil/
cp -R -p anvil.version %{buildroot}/%{_sysconfdir}/anvil/ cp -R -p anvil.version %{buildroot}/%{_sysconfdir}/anvil/
cp -R -p share/* %{buildroot}/%{_usr}/share/anvil/ cp -R -p share/* %{buildroot}/%{_usr}/share/anvil/
cp -R -p ocf/alteeve/server %{buildroot}/%{_usr}/lib/ocf/resource.d/alteeve
%pre core %pre core
@ -234,15 +236,6 @@ firewall-cmd --add-service=postgresql
firewall-cmd --add-service=postgresql --permanent firewall-cmd --add-service=postgresql --permanent
%pre node %pre node
echo "Copying the OCF resource agent into place.
if [ ! -d /usr/lib/ocf/resource.d/anvil ];
then
mkdir /usr/lib/ocf/resource.d/anvil
fi
if [ ! -e /usr/lib/ocf/resource.d/anvil/server ];
then
cp -R -p ocf/alteeve/* /usr/lib/ocf/resource.d/anvil/
fi
### Remove stuff - Disabled for now, messes things up during upgrades ### Remove stuff - Disabled for now, messes things up during upgrades
%postun core %postun core
@ -287,7 +280,7 @@ fi
%ghost %{_sysconfdir}/anvil/snmp-vendors.txt %ghost %{_sysconfdir}/anvil/snmp-vendors.txt
%files node %files node
%{_usr}/lib/ocf/resource.d/alteeve/* %{_usr}/lib/ocf/resource.d/alteeve/server
%files dr %files dr
#<placeholder for node specific files> #<placeholder for node specific files>
@ -299,10 +292,10 @@ fi
- Added installation of ocf:alteeve:server resource agent to nodes. - Added installation of ocf:alteeve:server resource agent to nodes.
- Updated the source. - Updated the source.
* Sat Feb 01 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-23 * Sat Feb 02 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-23
- Updated the source. - Updated the source.
* Sat Jan 30 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-22 * Wed Jan 30 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-22
- Finished swapping over to RHEL8. Fedora support now removed. - Finished swapping over to RHEL8. Fedora support now removed.
* Sat Jan 05 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-21 * Sat Jan 05 2019 Madison Kelly <mkelly@alteeve.ca> 3.0-21

Loading…
Cancel
Save