Blob Blame History Raw
From a8a1121df0ab0fff04755f50cd85e30595ec8381 Mon Sep 17 00:00:00 2001
From: Martin Kutlak <mkutlak@redhat.com>
Date: Mon, 26 Mar 2018 16:44:26 +0200
Subject: [PATCH 20/22] Revert "use /usr/sbin/"

This reverts commit 801b3ec7f6e8c4f932796786e5dd8fa8a72817b8.

Reverting because ldconfig is still in /sbin.

See https://bugzilla.redhat.com/show_bug.cgi?id=1063607
---
 libreport.spec.in | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/libreport.spec.in b/libreport.spec.in
index 0ddb7d27..1ba007cc 100644
--- a/libreport.spec.in
+++ b/libreport.spec.in
@@ -416,16 +416,16 @@ make check|| {
 # ldconfig and gtk-update-icon-cache is not needed
 %else
 %post gtk
-/usr/sbin/ldconfig
+/sbin/ldconfig
 # update icon cache
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
-%post -p /usr/sbin/ldconfig
+%post -p /sbin/ldconfig
 
-%postun -p /usr/sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %postun gtk
-/usr/sbin/ldconfig
+/sbin/ldconfig
 if [ $1 -eq 0 ] ; then
     touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
@@ -434,9 +434,11 @@ fi
 %posttrans gtk
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
-%post web -p /usr/sbin/ldconfig
 
-%postun web -p /usr/sbin/ldconfig
+%post web -p /sbin/ldconfig
+
+
+%postun web -p /sbin/ldconfig
 %endif
 
 %files -f %{name}.lang
-- 
2.14.3