From 6b708339f1abffcd521f07d89e230940dc4aef35 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 18 Nov 2020 16:22:40 +0100 Subject: [PATCH] Added error message in case chkconfig fails --- pandora_agents/unix/pandora_agent.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index f234b2e150..833b477cad 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -110,6 +110,10 @@ then systemctl enable pandora_agent_daemon.service else chkconfig pandora_agent_daemon on + if [ "$?" -gt 0 ] + then + echo "There was a problem configuring pandora_agent_daemon service to run on boot. Please enable it manually." + fi fi if [ "$1" -gt 1 ]