have to override ZoneMinder::Database::ZM_DB_USER, etc instead of just ZM_DB_USER.

This commit is contained in:
Isaac Connor 2013-08-20 15:13:50 -04:00
parent 35c36bd769
commit 3afad1a0a8
1 changed files with 2 additions and 2 deletions

View File

@ -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) )