Move stop and disable of man-db.timer into pre scriplet
This commit is contained in:
parent
9bd533379a
commit
2a2705aa52
10
man-db.spec
10
man-db.spec
@ -75,18 +75,18 @@ install -D -p -m 0644 init/systemd/man-db.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.
|
||||
%find_lang %{name}
|
||||
%find_lang %{name}-gnulib
|
||||
|
||||
# clear the old cache
|
||||
%post
|
||||
%{__rm} -rf %{cache}/*
|
||||
|
||||
%preun
|
||||
# stop and disable timer from previous builds
|
||||
%pre
|
||||
rpm -q systemd > /dev/null
|
||||
if [ "$?" -eq 0 ]; then
|
||||
systemctl stop man-db.timer
|
||||
systemctl -q disable man-db.timer
|
||||
fi
|
||||
|
||||
# clear the old cache
|
||||
%post
|
||||
%{__rm} -rf %{cache}/*
|
||||
|
||||
%files -f %{name}.lang -f %{name}-gnulib.lang
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
%license docs/COPYING
|
||||
|
Loading…
Reference in New Issue
Block a user