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:
parent
795852df44
commit
bc452ae630
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue