2010-02-10 Miguel de Dios <miguel.dedios@artica.es>

* pandora_agent_installer: fix bug when uninstall the agent in the same
	machine that it have a Pandora Server, that the uninstaller deleted the
	dirs share with Pandora Server (/var/spool/pandora/*)
	 


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2351 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-02-11 17:21:42 +00:00
parent cae911bd51
commit 5ce5a79d6c
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-02-10 Miguel de Dios <miguel.dedios@artica.es>
* pandora_agent_installer: fix bug when uninstall the agent in the same
machine that it have a Pandora Server, that the uninstaller deleted the
dirs share with Pandora Server (/var/spool/pandora/*)
2010-01-27 Sancho Lerena <slerena@artica,es>
* plugins/files_indir: New agent to detect if files in a specficied

View File

@ -79,7 +79,14 @@ fi
uninstall () {
echo "Removing Pandora FMS Agent..."
rm -Rf $PANDORA_BIN
rm -Rf $PANDORA_TEMP
#Test if exist Pandora Server in this machine
if [ -d $PANDORA_TEMP/data_in ]
then
echo "You have a Pandora Server in this machine. Then don't delete "$PANDORA_TEMP
else
rm -Rf $PANDORA_TEMP
fi
rm -Rf $PANDORA_CFG/pandora_agent.conf
rm -Rf /etc/init.d/pandora_agent_daemon 2> /dev/null