have to override ZoneMinder::Database::ZM_DB_USER, etc instead of just ZM_DB_USER.
This commit is contained in:
parent
35c36bd769
commit
3afad1a0a8
|
@ -99,8 +99,8 @@ if ( !GetOptions( 'check'=>\$check, 'freshen'=>\$freshen, 'rename'=>\$rename, 'z
|
|||
}
|
||||
|
||||
my $dbh = zmDbConnect();
|
||||
*ZM_DB_USER = sub { $dbUser } if ZM_DB_USER ne $dbUser;
|
||||
*ZM_DB_PASS = sub { $dbPass } if ZM_DB_PASS ne $dbPass;
|
||||
*ZoneMinder::Database::ZM_DB_USER = sub { $dbUser } if ZoneMinder::Database::ZM_DB_USER ne $dbUser;
|
||||
*ZoneMinder::Database::ZM_DB_PASS = sub { $dbPass } if ZoneMinder::Database::ZM_DB_PASS ne $dbPass;
|
||||
zmDbDisconnect();
|
||||
|
||||
if ( ! ($check || $freshen || $rename || $zoneFix || $migrateEvents || $version) )
|
||||
|
|
Loading…
Reference in New Issue