diff --git a/pandora_agents/unix/ChangeLog b/pandora_agents/unix/ChangeLog index d121a7584a..20555e155b 100644 --- a/pandora_agents/unix/ChangeLog +++ b/pandora_agents/unix/ChangeLog @@ -1,3 +1,7 @@ +2010-06-04 Ramon Novoa + + * pandora_agent.spec: Fixed. Upgrading an RPM broke the installation. + 2010-05-20 Miguel de Dios * DEBIAN/postinst, DEBIAN/make_deb_package.sh: fixed the script to generate diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index a21b006b52..c7da5b5507 100755 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -88,6 +88,11 @@ chkconfig pandora_agent_daemon on %preun +# Upgrading +if [ "$1" = "1" ]; then + exit 0 +fi + chkconfig --del pandora_agent_daemon /etc/init.d/pandora_agent_daemon stop rm /etc/init.d/pandora_agent_daemon