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:
parent
9022c0df61
commit
b589732730
|
@ -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>
|
2013-10-22 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Fixed missing macro replacing in
|
* lib/PandoraFMS/Core.pm: Fixed missing macro replacing in
|
||||||
|
|
|
@ -109,8 +109,7 @@ sub pandora_load_credentials ($) {
|
||||||
$conf{'dbhost'} = $ARGV[1];
|
$conf{'dbhost'} = $ARGV[1];
|
||||||
$conf{'dbuser'} = $ARGV[2];
|
$conf{'dbuser'} = $ARGV[2];
|
||||||
$conf{'dbpass'} = $ARGV[3];
|
$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{
|
sub help_screen{
|
||||||
print "\n[ERROR] No valid arguments\n\n";
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue