2011-12-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* pandora_server_upgrade: Removed rm of pandora_exec and 
	pandora_server and changed for ln -s commands.
	
	Fixes: #3451305



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-12-05 15:41:33 +00:00
parent 0153444171
commit 278456393e
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2011-12-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* pandora_server_upgrade: Removed rm of pandora_exec and
pandora_server and changed for ln -s commands.
Fixes: #3451305
2011-12-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es> 2011-12-01 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/NetworkServer.pm * lib/PandoraFMS/NetworkServer.pm

View File

@ -29,11 +29,12 @@ install () {
echo "Copying utilities...." echo "Copying utilities...."
cp -R util /usr/share/pandora_server cp -R util /usr/share/pandora_server
cp bin/pandora_exec /usr/bin
echo "Rebuilding links /usr/local/bin -> /usr/bin" echo "Rebuilding links /usr/local/bin -> /usr/bin"
rm /usr/local/bin/pandora_server 2> /dev/null #rm /usr/local/bin/pandora_server 2> /dev/null
rm /usr/local/bin/pandora_exec 2> /dev/null #rm /usr/local/bin/pandora_exec 2> /dev/null
ln -s /usr/local/bin/pandora_server /usr/bin/pandora_server 2> /dev/null
ln -s /usr/local/bin/pandora_exec /usr/bin/pandora_exec 2> /dev/null
if [ -d /etc/logrotate.d ]; then if [ -d /etc/logrotate.d ]; then
echo "Creating logrotate.d entry for Pandora FMS log management" echo "Creating logrotate.d entry for Pandora FMS log management"
@ -65,7 +66,7 @@ help () {
# Script banner at start # Script banner at start
echo " " echo " "
echo "Pandora FMS 3.2 Server Upgrade (c) 2009-2010 Artica ST" echo "Pandora FMS 4.0dev Server Upgrade (c) 2009-2010 Artica ST"
echo "This program is licensed under GPL2 Terms. http://pandorafms.org" echo "This program is licensed under GPL2 Terms. http://pandorafms.org"
echo " " echo " "