mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
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:
commit
ce5b6109c4
@ -67,6 +67,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
mkdir -p /var/log/pandora
|
||||||
chown pandora:root /var/log/pandora
|
chown pandora:root /var/log/pandora
|
||||||
if [ ! -d /etc/pandora ] ; then
|
if [ ! -d /etc/pandora ] ; then
|
||||||
mkdir -p /etc/pandora
|
mkdir -p /etc/pandora
|
||||||
@ -91,6 +92,9 @@ if [ ! -e /etc/pandora/collections ]; then
|
|||||||
fi
|
fi
|
||||||
cp -aRf /usr/share/pandora_agent/pandora_agent_logrotate /etc/logrotate.d/pandora_agent
|
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
|
mkdir -p /var/spool/pandora/data_out
|
||||||
chkconfig pandora_agent_daemon on
|
chkconfig pandora_agent_daemon on
|
||||||
|
|
||||||
|
@ -99,6 +99,11 @@ exit 0
|
|||||||
chkconfig pandora_server on
|
chkconfig pandora_server on
|
||||||
chkconfig tentacle_serverd 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
|
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
|
chmod 750 /etc/cron.hourly/pandora_db
|
||||||
cp -aRf /usr/share/pandora_server/util/pandora_server_logrotate /etc/logrotate.d/pandora_server
|
cp -aRf /usr/share/pandora_server/util/pandora_server_logrotate /etc/logrotate.d/pandora_server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user