def check_db_ver(): db_ver = utils.get_db_ver() db_min_ver = utils.get_min_db_ver() db_min_ver_int = utils.get_int_ver(db_min_ver) if settings.local.version_int < db_min_ver_int: logger.error('Pritunl version not compatible with database version', 'setup', db_version=db_ver, db_min_version=db_min_ver, server_version=settings.local.version, ) exit(75) return utils.get_int_ver(MIN_DATABASE_VER) > db_min_ver_int
def check_db_ver(): db_ver = utils.get_db_ver() db_min_ver = utils.get_min_db_ver() db_min_ver_int = utils.get_int_ver(db_min_ver) if settings.local.version_int < db_min_ver_int: logger.error('Pritunl version not compatible with database version', 'setup', db_version=db_ver, db_min_version=db_min_ver, server_version=settings.local.version, ) exit(75) return utils.get_int_ver(MIN_DATABASE_VER) > db_min_ver_int