Merge branch 'ent-5911-error-de-sintaxis-en-el-instalador-del-agente' into 'develop'

Fixed sintax error for some OS

See merge request artica/pandorafms!3251
This commit is contained in:
Alejandro Fraguas 2020-06-09 16:48:51 +02:00
commit 1c22a17d52
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ uninstall () {
rm -f $DESTDIR/etc/logrotate.d/pandora_agent
# Remove systemd service if exists
if [ $(systemctl --v | grep systemd | wc -l) != 0 ]
if [ `systemctl --v 2> /dev/null | grep systemd | wc -l` != 0 ]
then
PANDORA_AGENT_SERVICE="/etc/systemd/system/pandora_agent_daemon.service"
rm -f $PANDORA_AGENT_SERVICE
@ -480,7 +480,7 @@ install () {
fi
# Create systemd service
if [ $(systemctl --v | grep systemd | wc -l) != 0 ]
if [ `systemctl --v 2> /dev/null | grep systemd | wc -l` != 0 ]
then
echo "Creating systemd service for pandora_agent_daemon"