Fixed sintax error for some OS
This commit is contained in:
parent
b09ff78a87
commit
b7c0f0e4c3
|
@ -164,7 +164,7 @@ uninstall () {
|
||||||
rm -f $DESTDIR/etc/logrotate.d/pandora_agent
|
rm -f $DESTDIR/etc/logrotate.d/pandora_agent
|
||||||
|
|
||||||
# Remove systemd service if exists
|
# 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
|
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
|
||||||
|
@ -480,7 +480,7 @@ install () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create systemd service
|
# Create systemd service
|
||||||
if [ $(systemctl --v | grep systemd | wc -l) != 0 ]
|
if [ `systemctl --v 2> /dev/null | grep systemd | wc -l` != 0 ]
|
||||||
then
|
then
|
||||||
echo "Creating systemd service for pandora_agent_daemon"
|
echo "Creating systemd service for pandora_agent_daemon"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue