mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2009-01-21 Sancho Leren <slerena@artica.es>
* pandora_server_upgrade: Script to upgrade to latest version Pandora FMS server components / code. * bin/panora_network: Banner on load are rendered. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e033a0d669
commit
210467560d
@ -1,3 +1,10 @@
|
|||||||
|
2009-01-21 Sancho Leren <slerena@artica.es>
|
||||||
|
|
||||||
|
* pandora_server_upgrade: Script to upgrade to latest version
|
||||||
|
Pandora FMS server components / code.
|
||||||
|
|
||||||
|
* bin/panora_network: Banner on load are rendered.
|
||||||
|
|
||||||
2009-01-21 Ramon Novoa <rnovoa@artica.es>
|
2009-01-21 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/DB.pm: Take into account the alert option
|
* lib/PandoraFMS/DB.pm: Take into account the alert option
|
||||||
|
@ -75,7 +75,7 @@ if ($pa_config{"verbosity"} > 4){
|
|||||||
|
|
||||||
# Daemonize and put in background
|
# Daemonize and put in background
|
||||||
if ( $pa_config{"daemon"} eq "1" ){
|
if ( $pa_config{"daemon"} eq "1" ){
|
||||||
if (($pa_config{"quiet"} == 0) && ($pa_config{"verbosity"} > 4)){
|
if ($pa_config{"verbosity"} > 0){
|
||||||
print " [*] Backgrounding Pandora FMS Network Server process.\n\n";
|
print " [*] Backgrounding Pandora FMS Network Server process.\n\n";
|
||||||
}
|
}
|
||||||
&pandora_daemonize ( \%pa_config);
|
&pandora_daemonize ( \%pa_config);
|
||||||
|
65
pandora_server/pandora_server_upgrade
Normal file
65
pandora_server/pandora_server_upgrade
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Pandora FMS 2.0 Server Installer (c) 2009 Artica ST
|
||||||
|
# Please see http://www.pandorafms.com
|
||||||
|
# This code is licensed under GPL 2.0 license.
|
||||||
|
# **********************************************************************
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
MODE=$1
|
||||||
|
|
||||||
|
install () {
|
||||||
|
|
||||||
|
echo "Installing new libraries and server executables...."
|
||||||
|
perl Makefile.PL
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
|
||||||
|
echo "Setting permissions..."
|
||||||
|
|
||||||
|
chmod 750 bin/*
|
||||||
|
chmod 750 pandora_*
|
||||||
|
chmod 750 util/*.pl
|
||||||
|
chmod 750 util/pandora_exec
|
||||||
|
chmod 750 util/SLES10/*
|
||||||
|
chmod 750 util/plugin/*
|
||||||
|
|
||||||
|
echo "Copying utilities...."
|
||||||
|
cp -R util /usr/share/pandora
|
||||||
|
|
||||||
|
echo "Copying startup scripts to /etc/init.d...."
|
||||||
|
cp pandora_* /etc/init.d
|
||||||
|
|
||||||
|
if [ ! -e /etc/cron.daily/pandora_purge_db ]
|
||||||
|
then
|
||||||
|
echo "You don't have a /etc/cron.daily/pandora_purge_db file, you should consider"
|
||||||
|
echo "to setup the Pandora FMS daily Database Maintance script: "
|
||||||
|
echo " perl /usr/share/pandora/util/pandora_db.pl /etc/pandora/pandora_server.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo " "
|
||||||
|
echo "DONE!. Don't forget to restart all your Pandora FMS servers"
|
||||||
|
echo " "
|
||||||
|
}
|
||||||
|
|
||||||
|
help () {
|
||||||
|
echo " --upgrade To upgrade Pandora FMS Servers on this system (You have to be root)"
|
||||||
|
echo " "
|
||||||
|
}
|
||||||
|
|
||||||
|
# Script banner at start
|
||||||
|
echo " "
|
||||||
|
echo "Pandora FMS 2.0 Server Upgrade (c) 2009 Artica ST"
|
||||||
|
echo "This program is licensed under GPL2 Terms. http://pandorafms.com"
|
||||||
|
echo " "
|
||||||
|
|
||||||
|
case "$MODE" in
|
||||||
|
|
||||||
|
'--upgrade')
|
||||||
|
install
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
help
|
||||||
|
esac
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user