]> git.pld-linux.org Git - packages/e2fsprogs.git/commitdiff
- postshell is not enough for systemd macros
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 13 Mar 2019 17:08:18 +0000 (18:08 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 13 Mar 2019 17:08:18 +0000 (18:08 +0100)
e2fsprogs.spec

index be427e3ebed523f323bdfc40591f435f7cf6819f..a35a4e0dd3d217bdd96cb4628c52f0de55be79e4 100644 (file)
@@ -762,15 +762,15 @@ install -p initrd-mke2fs $RPM_BUILD_ROOT%{_libdir}/initrd/mke2fs
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
 %systemd_post e2scrub_all.service
 
 %preun
 %systemd_preun e2scrub_all.service
 
-%postun        -p /sbin/postshell
--/usr/sbin/fix-info-dir -c %{_infodir}
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} > /dev/null 2>&1
 %systemd_reload
 
 %post  libs -p /sbin/ldconfig
This page took 0.036931 seconds and 4 git commands to generate.