Merge branch 'ent-6251-add-error-control-pandoraagent-rpm-installer' into 'develop'

Adding error control if the link already exist, then wont be created again

See merge request artica/pandorafms!3438
This commit is contained in:
Daniel Rodriguez 2020-09-30 13:18:43 +02:00
commit def89b77d9

View File

@ -87,7 +87,7 @@ fi
if [ ! -f /etc/pandora/pandora_agent.conf ] ; then if [ ! -f /etc/pandora/pandora_agent.conf ] ; then
ln -s /usr/share/pandora_agent/pandora_agent.conf /etc/pandora/pandora_agent.conf ln -s /usr/share/pandora_agent/pandora_agent.conf /etc/pandora/pandora_agent.conf
else else
ln -s /usr/share/pandora_agent/pandora_agent.conf.rpmnew /etc/pandora/pandora_agent.conf.rpmnew [[ ! -f /etc/pandora/pandora_agent.conf.rpmnew ]] && ln -s /usr/share/pandora_agent/pandora_agent.conf.rpmnew /etc/pandora/pandora_agent.conf.rpmnew
fi fi
if [ ! -e /etc/pandora/plugins ]; then if [ ! -e /etc/pandora/plugins ]; then