Merge branch 'bug-paquetes-pandora-instalacion-opensuse' into 'develop'

Enable SystemD services and other fixes an Suse rpm

See merge request artica/pandorafms!878
This commit is contained in:
vgilc 2017-10-26 12:29:30 +02:00
commit ce5b6109c4
2 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,7 @@ then
fi
%post
mkdir -p /var/log/pandora
chown pandora:root /var/log/pandora
if [ ! -d /etc/pandora ] ; then
mkdir -p /etc/pandora
@ -91,6 +92,9 @@ if [ ! -e /etc/pandora/collections ]; then
fi
cp -aRf /usr/share/pandora_agent/pandora_agent_logrotate /etc/logrotate.d/pandora_agent
# Enable the service on SystemD
systemctl enable pandora_agent_daemon.service
mkdir -p /var/spool/pandora/data_out
chkconfig pandora_agent_daemon on

View File

@ -99,6 +99,11 @@ exit 0
chkconfig pandora_server on
chkconfig tentacle_serverd on
# Enable the services on SystemD
systemctl enable tentacle_serverd.service
systemctl enable pandora_server.service
echo "/usr/share/pandora_server/util/pandora_db.pl /etc/pandora/pandora_server.conf" > /etc/cron.hourly/pandora_db
chmod 750 /etc/cron.hourly/pandora_db
cp -aRf /usr/share/pandora_server/util/pandora_server_logrotate /etc/logrotate.d/pandora_server