Issue with custom agent installation

This commit is contained in:
Kike 2021-05-07 14:04:29 +02:00
parent 454e6120e4
commit f4e0e9f799
1 changed files with 2 additions and 2 deletions

View File

@ -152,8 +152,8 @@ uninstall () {
fi
# Stops the agent on uninstall
if [ -f $PANDORA_BASE/etc/init.d/pandora_agent_daemon ]; then
$PANDORA_BASE/etc/init.d/pandora_agent_daemon stop 12> /dev/null
if [ -f /etc/init.d/pandora_agent_daemon ]; then
/etc/init.d/pandora_agent_daemon stop 12> /dev/null
else
echo "$PANDORA_BASE/etc/init.d/pandora_agent_daemon not found to stop agent"
fi