From 4f209bcfe291966e22ec4393bffb834e22a47b42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Ekstr=C3=B6m?= Date: Thu, 18 Sep 2014 14:54:55 +0300 Subject: [PATCH] packaging/sys-con: Only run postun steps when we are uninstalled. Change-Id: Iadf70eee06eb88b3df67d69971eca77bc4720419 --- packaging/murphy.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/murphy.spec b/packaging/murphy.spec index 0409090..c7856bf 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -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 -- 2.7.4