Fixed missing db user and passwords for updates.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1119 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-09-26 22:08:23 +00:00
parent 795852df44
commit bc452ae630
1 changed files with 2 additions and 2 deletions

View File

@ -260,10 +260,10 @@ if ( $version )
my $command = "mysql -h".ZM_DB_SERVER;
if ( $db_user )
{
$command .= " -u".ZM_DB_USERA;
$command .= " -u".$db_user;
if ( $db_pass )
{
$command .= " -p".ZM_DB_PASSA;
$command .= " -p".$db_pass;
}
}
$command .= " ".ZM_DB_NAME." < ".ZM_PATH_BUILD."/db/zmalter-".$version.".sql";