Fix version test. split takes a regexp, so '.' matches everything. So change it to /\./.

This commit is contained in:
Isaac Connor 2021-04-28 13:25:01 -04:00
parent a9ca6f8c13
commit 2302d814f2
1 changed files with 2 additions and 2 deletions

View File

@ -171,8 +171,8 @@ if ( $command =~ /^(?:start|restart)$/ ) {
if ( $Config{ZM_DYN_DB_VERSION}
and ( $Config{ZM_DYN_DB_VERSION} ne ZM_VERSION )
) {
my ( $db_major, $db_minor, $db_micro ) = split('.', $Config{ZM_DYN_DB_VERSION});
my ( $major, $minor, $micro ) = split('.', ZM_VERSION);
my ( $db_major, $db_minor, $db_micro ) = split(/\./, $Config{ZM_DYN_DB_VERSION});
my ( $major, $minor, $micro ) = split(/\./, ZM_VERSION);
if ( $db_major != $major or $db_minor != $minor ) {
Fatal('Version mismatch, system is version '.ZM_VERSION
.', database is '.$Config{ZM_DYN_DB_VERSION}