added systemd to packages

This commit is contained in:
jose.almendros 2020-06-25 12:10:38 +02:00
parent c77ccae89a
commit 837b73da28
4 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ if [ ! -d /var/log/pandora ]; then
mkdir -p /var/log/pandora
fi
if [ `command -v sysctl` ];
if [ `command -v systemctl` ];
then
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service

View File

@ -100,7 +100,7 @@ cp -aRf /usr/share/pandora_agent/pandora_agent_logrotate /etc/logrotate.d/pandor
mkdir -p /var/spool/pandora/data_out
if [ `command -v sysctl` ];
if [ `command -v systemctl` ];
then
cp /usr/share/pandora_agent/pandora_agent_daemon.service /usr/lib/systemd/system/
chmod -x /usr/lib/systemd/system/pandora_agent_daemon.service

View File

@ -111,7 +111,7 @@ exit 0
%post
# Initial installation
if [ "$1" = 1 ]; then
if [ `command -v sysctl` ];
if [ `command -v systemctl` ];
then
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
chmod -x /usr/lib/systemd/system/tentacle_serverd.service

View File

@ -102,7 +102,7 @@ fi
exit 0
%post
if [ `command -v sysctl` ];
if [ `command -v systemctl` ];
then
cp /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
chmod -x /usr/lib/systemd/system/tentacle_serverd.service