mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2009-04-20 Sancho Lerena <slerena@artica.es>
* pandora_server_installer: Added --no-tentacle switch, added more descriptive labels. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1633 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
06815860a5
commit
7b1ef8c44f
@ -1,3 +1,8 @@
|
|||||||
|
2009-04-20 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* pandora_server_installer: Added --no-tentacle switch, added more
|
||||||
|
descriptive labels.
|
||||||
|
|
||||||
2009-04-20 Ramon Novoa <rnovoa@artica.es>
|
2009-04-20 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Fixed another typo.
|
* lib/PandoraFMS/Core.pm: Fixed another typo.
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# Pandora FMS 2.0 Server Installer (c) 2008 Manuel Arostegui <marostegui@artica.es>
|
# Pandora FMS 3.0 Server Installer (c) 2008-2009 Artica ST
|
||||||
# Please see http://www.pandorafms.com
|
# Please see http://www.pandorafms.org
|
||||||
# This code is licensed under GPL 2.0 license.
|
# This code is licensed under GPL 2.0 license.
|
||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
|
SECOPT=$2
|
||||||
|
|
||||||
install () {
|
install () {
|
||||||
|
|
||||||
@ -61,11 +62,10 @@ else
|
|||||||
if [ "`uname -s`" != "Linux" ]; then
|
if [ "`uname -s`" != "Linux" ]; then
|
||||||
echo "This is not a Linux-based distro. The installer will not create files for automatic startup."
|
echo "This is not a Linux-based distro. The installer will not create files for automatic startup."
|
||||||
echo "Copying the binaries into /usr/local/bin"
|
echo "Copying the binaries into /usr/local/bin"
|
||||||
cp pandora_* /usr/local/bin
|
cp pandora_server /usr/local/bin
|
||||||
rm /usr/local/bin/pandora_server_installer
|
|
||||||
else
|
else
|
||||||
cp pandora_* /etc/init.d/
|
echo "Copying the startup scripts into /etc/init.d and linking it to /etc/rc2.d"
|
||||||
rm /etc/init.d/pandora_server_installer
|
cp pandora_server /etc/init.d/
|
||||||
ln -s /etc/init.d/pandora_server /etc/rc2.d/S90pandora_server
|
ln -s /etc/init.d/pandora_server /etc/rc2.d/S90pandora_server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -75,11 +75,15 @@ else
|
|||||||
ln -s /usr/bin/pandora_server /usr/local/bin/pandora_server
|
ln -s /usr/bin/pandora_server /usr/local/bin/pandora_server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tentacle server install
|
|
||||||
|
|
||||||
cp bin/tentacle_server /usr/local/bin
|
if [ "$SECOPT" != "--no-tentacle" ]
|
||||||
cp util/tentacle_serverd /etc/init.d/tentacle_serverd
|
then
|
||||||
ln -s /etc/init.d/tentacle_serverd /etc/rc2.d/S80tentacle_serverd
|
# Tentacle server install
|
||||||
|
echo "Installing tentacle server in /etc/rc2.d/S80tentacle_serverd"
|
||||||
|
cp bin/tentacle_server /usr/local/bin
|
||||||
|
cp util/tentacle_serverd /etc/init.d/tentacle_serverd
|
||||||
|
ln -s /etc/init.d/tentacle_serverd /etc/rc2.d/S80tentacle_serverd
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir /usr/share/pandora
|
mkdir /usr/share/pandora
|
||||||
cp -R util /usr/share/pandora
|
cp -R util /usr/share/pandora
|
||||||
@ -129,13 +133,17 @@ uninstall () {
|
|||||||
help () {
|
help () {
|
||||||
echo " --install To install Pandora FMS Servers on this system (You have to be root)"
|
echo " --install To install Pandora FMS Servers on this system (You have to be root)"
|
||||||
echo " --uninstall To uninstall and remove Pandora FMS Servers on this System"
|
echo " --uninstall To uninstall and remove Pandora FMS Servers on this System"
|
||||||
|
echo " "
|
||||||
|
echo " Additional parameters (after --install) "
|
||||||
echo " "
|
echo " "
|
||||||
|
echo " --no-tentacle Skip tentacle server installation (by default tentacle server installed)"
|
||||||
|
echo " "
|
||||||
}
|
}
|
||||||
|
|
||||||
# Script banner at start
|
# Script banner at start
|
||||||
echo " "
|
echo " "
|
||||||
echo "Pandora FMS 2.0 Server Installer (c) 2008 Manuel Arostegui"
|
echo "Pandora FMS 3.0 Server Installer (c) 2008-2009 Artica ST"
|
||||||
echo "This program is licensed under GPL2 Terms. http://pandora.sourceforge.net"
|
echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
case "$MODE" in
|
case "$MODE" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user