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:
commit
1c22a17d52
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue