Fix version test. split takes a regexp, so '.' matches everything. So change it to /\./.
This commit is contained in:
parent
a9ca6f8c13
commit
2302d814f2
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue