Remove (buggy?) logic around NFS snippet.
This commit is contained in:
parent
fbd063543a
commit
c1f4665d37
@ -1,6 +1,6 @@
|
|||||||
Name: gssproxy
|
Name: gssproxy
|
||||||
Version: 0.7.0
|
Version: 0.7.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: GSSAPI Proxy
|
Summary: GSSAPI Proxy
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -113,21 +113,6 @@ rm -rf %{buildroot}
|
|||||||
%post
|
%post
|
||||||
%systemd_post gssproxy.service
|
%systemd_post gssproxy.service
|
||||||
|
|
||||||
%triggerun -- gssproxy
|
|
||||||
old_ver=$(rpm -q --qf '%%{VERSION}\n' gssproxy | sort -V | head -n 1 | tr -d '\n')
|
|
||||||
|
|
||||||
old_rel=$(rpm -q --qf '%%{RELEASE}\n' gssproxy | sort -V | head -n 1 | tr -d '\n')
|
|
||||||
old_rel=${old_rel%%.*}
|
|
||||||
|
|
||||||
# if nfs-utils is not present, the user doesn't want this file around
|
|
||||||
if [[ $old_ver < 0.7.0 || ( $old_ver = 0.7.0 && $old_rel < 7 ) ]]; then
|
|
||||||
rpm -q --qf '%%{VERSION}\n' nfs-utils >/dev/null 2>&1
|
|
||||||
if [[ $! != 0 ]]; then
|
|
||||||
rm -f /etc/gssproxy/24-nfs-server.conf 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun gssproxy.service
|
%systemd_preun gssproxy.service
|
||||||
|
|
||||||
@ -135,6 +120,9 @@ exit 0
|
|||||||
%systemd_postun_with_restart gssproxy.service
|
%systemd_postun_with_restart gssproxy.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 24 2017 Robbie Harwood <rharwood@redhat.com> - 0.7.0-8
|
||||||
|
- Remove (buggy?) logic around NFS snippet.
|
||||||
|
|
||||||
* Wed May 17 2017 Robbie Harwood <rharwood@redhat.com> - 0.7.0-7
|
* Wed May 17 2017 Robbie Harwood <rharwood@redhat.com> - 0.7.0-7
|
||||||
- Remove NFS server stanza if nfs-utils not present
|
- Remove NFS server stanza if nfs-utils not present
|
||||||
- Also update gcc7 patch to match upstream
|
- Also update gcc7 patch to match upstream
|
||||||
|
Loading…
Reference in New Issue
Block a user