2013-10-22 Hirofumi Kosaka <kosaka@rworks.jp>

* util/pandora_migrate_plugins.pl: Added optional command-line	
	argument 'dbport' for people who use non-standard DB port.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8946 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
hkosaka 2013-10-22 11:05:06 +00:00
parent e6c69beb6d
commit 5cba9ab702
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-10-22 Hirofumi Kosaka <kosaka@rworks.jp>
* util/pandora_migrate_plugins.pl: Added optional command-line
argument 'dbport' for people who use non-standard DB port.
2013-10-22 Hirofumi Kosaka <kosaka@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed missing macro replacing in

View File

@ -109,8 +109,7 @@ sub pandora_load_credentials ($) {
$conf{'dbhost'} = $ARGV[1];
$conf{'dbuser'} = $ARGV[2];
$conf{'dbpass'} = $ARGV[3];
$conf{'dbport'} = 0;
$conf{'dbport'} = ($#ARGV >= 4 ? $ARGV[4] : 0);
}
##############################################################################
@ -119,7 +118,7 @@ sub pandora_load_credentials ($) {
sub help_screen{
print "\n[ERROR] No valid arguments\n\n";
print "Usage: \n\n$0 <dbname> <dbhost> <dbuser> <dbpass> \n\n";
print "Usage: \n\n$0 <dbname> <dbhost> <dbuser> <dbpass> [<dbport>]\n\n";
exit;
}