From b16a798fd4cdaf5ad48e5e4030d7a94be595c0ae Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 4 Jun 2010 10:37:26 +0000 Subject: [PATCH] 2010-06-04 Ramon Novoa * pandora_server.spec: Fixed the %postun target. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2859 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/pandora_server.spec | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 3c8171ce7e..d4dc922ed3 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2010-06-04 Ramon Novoa + + * pandora_server.spec: Fixed the %postun target. + 2010-06-04 Ramon Novoa * pandora_console.spec: Fixed. Upgrading an RPM broke the installation. diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec index 85918f4c82..95c19c8c42 100644 --- a/pandora_server/pandora_server.spec +++ b/pandora_server/pandora_server.spec @@ -119,6 +119,12 @@ chkconfig --del pandora_server chkconfig --del tentacle_serverd %postun + +# Upgrading +if [ "$1" = "1" ]; then + exit 0 +fi + rm -Rf /etc/init.d/tentacle_serverd rm -Rf /etc/init.d/pandora_server rm -Rf %{prefix}pandora_server