mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
updated redhat server spec
This commit is contained in:
parent
c1f57cd2a8
commit
8eab4ddb79
@ -110,8 +110,10 @@ exit 0
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
# Initial installation
|
# Initial installation
|
||||||
if [ "$1" = 1 ]; then
|
# Run when not uninstalling
|
||||||
if [ `command -v systemctl` ];
|
if [ "$1" -ge 1 ]
|
||||||
|
then
|
||||||
|
if [ `command -v systemctl` ]
|
||||||
then
|
then
|
||||||
echo "Copying new version for tentacle_serverd service"
|
echo "Copying new version for tentacle_serverd service"
|
||||||
cp -f /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
cp -f /usr/share/pandora_server/util/tentacle_serverd.service /usr/lib/systemd/system/
|
||||||
@ -123,10 +125,10 @@ if [ "$1" = 1 ]; then
|
|||||||
/sbin/chkconfig tentacle_serverd on
|
/sbin/chkconfig tentacle_serverd on
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/sbin/chkconfig --add pandora_server
|
/sbin/chkconfig --add pandora_server
|
||||||
/sbin/chkconfig pandora_server on
|
/sbin/chkconfig pandora_server on
|
||||||
|
|
||||||
systemctl enable pandora_server.service
|
systemctl enable pandora_server.service
|
||||||
|
|
||||||
echo "Pandora FMS Server configuration is %{_sysconfdir}/pandora/pandora_server.conf"
|
echo "Pandora FMS Server configuration is %{_sysconfdir}/pandora/pandora_server.conf"
|
||||||
echo "Pandora FMS Server main directory is %{prefix}/pandora_server/"
|
echo "Pandora FMS Server main directory is %{prefix}/pandora_server/"
|
||||||
@ -135,7 +137,7 @@ systemctl enable pandora_server.service
|
|||||||
echo " "
|
echo " "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This will avoid confi files overwritting on UPGRADES.
|
# This will avoid config files overwritting on UPGRADES.
|
||||||
# Main configuration file
|
# Main configuration file
|
||||||
if [ ! -e "/etc/pandora/pandora_server.conf" ]
|
if [ ! -e "/etc/pandora/pandora_server.conf" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user