fix install error
This commit is contained in:
parent
daa7da075b
commit
7119d1a46f
@ -3,7 +3,7 @@
|
||||
|
||||
Name: glusterfs
|
||||
Version: 7.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
License: GPLv2 and LGPLv3+
|
||||
Summary: Aggregating distributed file system
|
||||
URL: http://docs.gluster.org/
|
||||
@ -24,7 +24,7 @@ Provides: %{name}-common = %{version}-%{release}
|
||||
Provides: %{name}-core = %{version}-%{release}
|
||||
Requires: python3-gluster = %{version}-%{release}
|
||||
Requires: python3 python3-prettytable python3-requests attr psmisc rsync
|
||||
Requires: rpcbind pyxattr lvm2 nfs-utils
|
||||
Requires: rpcbind lvm2 nfs-utils
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): systemd /sbin/ldconfig
|
||||
Requires(preun): systemd
|
||||
@ -163,11 +163,15 @@ install -p -m 0755 -D extras/command-completion/gluster.bash %{buildroot}%{_sys
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
%systemd_postun_with_restart rsyslog
|
||||
exit 0
|
||||
|
||||
%systemd_post glustereventsd
|
||||
exit 0
|
||||
|
||||
if [ $1 -ge 1 ]; then
|
||||
%systemd_postun_with_restart glusterd
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%systemd_post glusterd
|
||||
%systemd_post glusterfsd
|
||||
@ -227,12 +231,15 @@ if [ $1 -eq 0 ]; then
|
||||
/bin/systemctl --quiet stop glustereventsd.service
|
||||
%systemd_preun glustereventsd
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ -f %{_unitdir}/glusterfsd.service ]; then
|
||||
/bin/systemctl --quiet stop glusterfsd.service
|
||||
fi
|
||||
|
||||
/bin/systemctl --quiet stop glusterd.service
|
||||
|
||||
if [ -f %{_unitdir}/glusterfsd.service ]; then
|
||||
%systemd_preun glusterfsd
|
||||
fi
|
||||
@ -450,6 +457,12 @@ exit 0
|
||||
%{_mandir}/man8/*gluster*.8*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 12 2020 Ruijun Ge<geruijun@huawei.com> - 7.0-3
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:fix install error
|
||||
|
||||
* Tue Jan 14 2020 renxudong<renxudong1@huawei.com> - 7.0-2
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user