packaging/sys-con: Only run postun steps when we are uninstalled.
authorJan Ekström <jan.ekstrom@intel.com>
Thu, 18 Sep 2014 11:54:55 +0000 (14:54 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:17 +0000 (18:37 +0200)
Change-Id: Iadf70eee06eb88b3df67d69971eca77bc4720419

packaging/murphy.spec

index 0409090..c7856bf 100644 (file)
@@ -561,11 +561,13 @@ ln -s %{_unitdir_user}/murphy-wait-for-launchpad-ready.path \
     %{_unitdir_user}/weston.target.wants/murphy-wait-for-launchpad-ready.path
 
 %postun system-controller
+if [ "$1" = "0" ]; then
 rm -f %{_unitdir_user}/weston.target.wants/murphy-wait-for-launchpad-ready.path
 if [ -f %{_unitdir_user}/ico-uxf-wait-launchpad-ready.path ]; then
     ln -sf %{_unitdir_user}/ico-uxf-wait-launchpad-ready.path \
         %{_unitdir_user}/weston.target.wants/ico-uxf-wait-launchpad-ready.path
 fi
+fi
 %endif
 
 %post gam