mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-7100-bug-en-instalacion-de-servicio-systemctl-agente' into 'develop'
changed systemctl check for command -v See merge request artica/pandorafms!3983
This commit is contained in:
commit
d96dd76b26
@ -166,7 +166,7 @@ uninstall () {
|
|||||||
rm -f $DESTDIR/etc/newsyslog.d/pandora_agent.conf
|
rm -f $DESTDIR/etc/newsyslog.d/pandora_agent.conf
|
||||||
|
|
||||||
# Remove systemd service if exists
|
# Remove systemd service if exists
|
||||||
if [ `systemctl --v 2> /dev/null | grep systemd | wc -l` != 0 ]
|
if [ `command -v systemctl` ]
|
||||||
then
|
then
|
||||||
PANDORA_AGENT_SERVICE="/etc/systemd/system/pandora_agent_daemon.service"
|
PANDORA_AGENT_SERVICE="/etc/systemd/system/pandora_agent_daemon.service"
|
||||||
rm -f $PANDORA_AGENT_SERVICE
|
rm -f $PANDORA_AGENT_SERVICE
|
||||||
@ -482,7 +482,7 @@ install () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create systemd service
|
# Create systemd service
|
||||||
if [ `systemctl --v 2> /dev/null | grep systemd | wc -l` != 0 ]
|
if [ `command -v systemctl` ]
|
||||||
then
|
then
|
||||||
echo "Creating systemd service for pandora_agent_daemon"
|
echo "Creating systemd service for pandora_agent_daemon"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user