don't call chkconfig add, we use systemd now

own %{_datadir}/%{name} and %{_libexecdir}/%{name} dirs
This commit is contained in:
Michal Hlavinka 2011-03-05 10:58:49 +01:00
parent 25de0a108c
commit 776f097192

View File

@ -1,7 +1,7 @@
Summary: Tools for monitoring SMART capable hard disks Summary: Tools for monitoring SMART capable hard disks
Name: smartmontools Name: smartmontools
Version: 5.40 Version: 5.40
Release: 7%{?dist} Release: 8%{?dist}
Epoch: 1 Epoch: 1
Group: System Environment/Base Group: System Environment/Base
License: GPLv2+ License: GPLv2+
@ -83,7 +83,6 @@ if [ $1 -eq 0 ] ; then
fi fi
%post %post
/sbin/chkconfig --add smartd
/sbin/service smartd condrestart >/dev/null 2>&1 ||: /sbin/service smartd condrestart >/dev/null 2>&1 ||:
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
/bin/systemctl enable smartd.service >/dev/null 2>&1 || : /bin/systemctl enable smartd.service >/dev/null 2>&1 || :
@ -115,6 +114,9 @@ fi
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Fri Mar 04 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-8
- don't call chkconfig add, we use systemd now
* Thu Mar 03 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-7 * Thu Mar 03 2011 Michal Hlavinka <mhlavink@redhat.com> - 1:5.40-7
- own %%{_datadir}/%%{name} and %%{_libexecdir}/%%{name} dirs - own %%{_datadir}/%%{name} and %%{_libexecdir}/%%{name} dirs