From 467b5d510324cfb67fb0d3870576b830398cbc08 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 1 Feb 2021 14:35:14 +0100 Subject: [PATCH] minor rephrasing --- pandora_agents/unix/pandora_agent.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec index 535bc136cf..9de99463c4 100644 --- a/pandora_agents/unix/pandora_agent.spec +++ b/pandora_agents/unix/pandora_agent.spec @@ -107,13 +107,14 @@ then cp -f /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/ chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service # Enable the services on SystemD - systemctl enable pandora_agent_daemon.service - if [ "$?" -gt 0 ] - then - chkconfig pandora_agent_daemon on || echo "There was a problem configuring pandora_agent_daemon service to run on boot. Please enable it manually." - fi + systemctl enable pandora_agent_daemon.service || chkconfig pandora_agent_daemon on else - chkconfig pandora_agent_daemon on || echo "There was a problem configuring pandora_agent_daemon service to run on boot. Please enable it manually." + chkconfig pandora_agent_daemon on +fi + +if [ "$?" -gt 0 ] +then + echo "There was a problem configuring pandora_agent_daemon service to run on boot. Please enable it manually." fi if [ "$1" -gt 1 ]