[packages/elilo] %post improved, %postun added
jajcus
jajcus at pld-linux.org
Wed Oct 31 15:29:01 CET 2012
commit 553af7c917aa16bf1902e642653c1827988284c4
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Oct 31 15:28:39 2012 +0100
%post improved, %postun added
elilo.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/elilo.spec b/elilo.spec
index 6e85514..6abbae2 100644
--- a/elilo.spec
+++ b/elilo.spec
@@ -67,7 +67,10 @@ cp --preserve=ship,timestamps /lib/efi/%{efi_arch}/elilo.efi /boot/efi/elilo.efi
echo "Remove /boot/efi/elilo.efi if you don't need it."
%post
-/sbin/efi-boot-update --auto || :
+[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
+
+%postun
+[ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/elilo.git/commitdiff/553af7c917aa16bf1902e642653c1827988284c4
More information about the pld-cvs-commit
mailing list