mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2010-06-06 Raul Mateos <raulofpandora@gmail.com>
* pandora_console_install: Cleaned code. Updated year. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2861 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
952940c7bc
commit
ccb9d3e2a7
@ -1,3 +1,7 @@
|
|||||||
|
2010-06-06 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
|
* pandora_console_install: Cleaned code. Updated year.
|
||||||
|
|
||||||
2010-06-06 Raúl Mateos <raulofpandora@gmail.com>
|
2010-06-06 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* godmode/reporting/reporting_builder.php, godmode/reporting/graphs.php,
|
* godmode/reporting/reporting_builder.php, godmode/reporting/graphs.php,
|
||||||
@ -22,8 +26,8 @@
|
|||||||
|
|
||||||
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
|
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* general/license/pandora_info_ast_es.html: cleaned html and fixed unclose
|
* general/license/pandora_info_ast_es.html: cleaned html and fixed unclose
|
||||||
html tags in source code, the eclipse warm to me.
|
html tags in source code, the eclipse warned me.
|
||||||
|
|
||||||
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
|
2010-06-03 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
@ -39,7 +43,7 @@
|
|||||||
|
|
||||||
* general/header.php, godmode/db/db_audit.php,
|
* general/header.php, godmode/db/db_audit.php,
|
||||||
godmode/reporting/reporting_builder.item_editor.php: cleaned html and fixed
|
godmode/reporting/reporting_builder.item_editor.php: cleaned html and fixed
|
||||||
unclose html tags in source code, the eclipse warm to me.
|
unclose html tags in source code, the eclipse warned me.
|
||||||
|
|
||||||
2010-06-02 Raúl Mateos <raulofpandora@gmail.com>
|
2010-06-02 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Pandora FMS Console Installer (c) 2008-2009 Artica ST
|
# Pandora FMS Console Installer (c) 2008-2010 Artica ST
|
||||||
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
# Linux Version (generic), for SuSe and Debian/Ubuntu only
|
||||||
# other Linux distros could not work properly without modifications
|
# other Linux distros could not work properly without modifications
|
||||||
# Please see http://www.pandorafms.org
|
# Please see http://www.pandorafms.org
|
||||||
@ -8,7 +8,7 @@
|
|||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION=3.0.0
|
PI_VERSION=3.1.0
|
||||||
FORCE=0
|
FORCE=0
|
||||||
LOG_TIMESTAMP=`date +"%Y/%m/%d %H:%M:%S"`
|
LOG_TIMESTAMP=`date +"%Y/%m/%d %H:%M:%S"`
|
||||||
MODE=$1
|
MODE=$1
|
||||||
@ -50,10 +50,10 @@ get_distro () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uninstall () {
|
uninstall () {
|
||||||
echo "Removing Pandora FMS Console"
|
echo "Removing Pandora FMS Console"
|
||||||
rm -Rf $PANDORA_HOME
|
rm -Rf $PANDORA_HOME
|
||||||
echo "You need to manually drop pandora database from your Database server"
|
echo "You need to manually drop pandora database from your Database server"
|
||||||
echo "Done"
|
echo "Done"
|
||||||
}
|
}
|
||||||
|
|
||||||
install () {
|
install () {
|
||||||
@ -72,23 +72,23 @@ install () {
|
|||||||
|
|
||||||
echo "Detecting Linux distribution: $DISTRO"
|
echo "Detecting Linux distribution: $DISTRO"
|
||||||
|
|
||||||
if [ -f $PANDORA_HOME ] && [ "$FORCE" = "0" ]
|
if [ -f $PANDORA_HOME ] && [ "$FORCE" = "0" ]
|
||||||
then
|
then
|
||||||
echo "Seems that default dir already exists. Please use --force to"
|
echo "Seems that default dir already exists. Please use --force to"
|
||||||
echo "force installer to install on $PANDORA_HOME"
|
echo "force installer to install on $PANDORA_HOME"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "Checking default dir $PANDORA_HOME..."
|
echo "Checking default dir $PANDORA_HOME..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create directories
|
# Create directories
|
||||||
echo "Creating Pandora FMS Console home directory at $PANDORA_HOME ..."
|
echo "Creating Pandora FMS Console home directory at $PANDORA_HOME ..."
|
||||||
mkdir $PANDORA_HOME 2> /dev/null
|
mkdir $PANDORA_HOME 2> /dev/null
|
||||||
|
|
||||||
# Copying Pandora FMS console
|
# Copying Pandora FMS console
|
||||||
echo "Copying Pandora FMS Console to $PANDORA_HOME.."
|
echo "Copying Pandora FMS Console to $PANDORA_HOME.."
|
||||||
cp -R * $PANDORA_HOME
|
cp -R * $PANDORA_HOME
|
||||||
chmod -R u+rwX,g+rX,g-w,o-rwx $PANDORA_HOME
|
chmod -R u+rwX,g+rX,g-w,o-rwx $PANDORA_HOME
|
||||||
|
|
||||||
|
|
||||||
# Creating 'pandora' user
|
# Creating 'pandora' user
|
||||||
@ -114,53 +114,53 @@ install () {
|
|||||||
chown -R wwwrun:root $PANDORA_HOME
|
chown -R wwwrun:root $PANDORA_HOME
|
||||||
chown -R pandora:www /var/spool/pandora/
|
chown -R pandora:www /var/spool/pandora/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting secure permissions for Pandora FMS spool dir..."
|
echo "Setting secure permissions for Pandora FMS spool dir..."
|
||||||
chmod -R u+rwX,g+rwX,o-rwx /var/spool/pandora/
|
chmod -R u+rwX,g+rwX,o-rwx /var/spool/pandora/
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo " "
|
echo " "
|
||||||
echo "You have your Pandora FMS console installed on $PANDORA_HOME."
|
echo "You have your Pandora FMS console installed on $PANDORA_HOME."
|
||||||
echo " "
|
echo " "
|
||||||
echo "Now you can setup your Pandora FMS console and install"
|
echo "Now you can setup your Pandora FMS console and install"
|
||||||
echo "database using a broser and point to: "
|
echo "database using a broser and point to: "
|
||||||
echo " "
|
echo " "
|
||||||
echo " http://ip_address_of_this_server/pandora/install.php"
|
echo " http://ip_address_of_this_server/pandora/install.php"
|
||||||
echo " "
|
echo " "
|
||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
|
|
||||||
help () {
|
help () {
|
||||||
echo " --force-install To force installation if already installed on system "
|
echo " --force-install To force installation if already installed on this system"
|
||||||
echo " --install To install Pandora FMS Console on this system"
|
echo " --install To install Pandora FMS Console on this system"
|
||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
|
|
||||||
# Script banner at start
|
# Script banner at start
|
||||||
echo " "
|
echo " "
|
||||||
echo "Pandora FMS Console Installer $PI_VERSION (c) 2008-2009 ArticaST"
|
echo "Pandora FMS Console Installer $PI_VERSION (c) 2008-2010 ArticaST"
|
||||||
echo "This program is licensed under GPL2 Terms. http://pandorafms.com"
|
echo "This program is licensed under GPL2 Terms. http://pandorafms.com"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
|
|
||||||
'--force-install')
|
'--force-install')
|
||||||
FORCE=1
|
FORCE=1
|
||||||
install
|
install
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'--install')
|
'--install')
|
||||||
install
|
install
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'--uninstall')
|
'--uninstall')
|
||||||
uninstall
|
uninstall
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
help
|
help
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user