Account for mariadb versioning
This commit is contained in:
parent
3c48320b29
commit
16a3bdaa7d
1 changed files with 6 additions and 2 deletions
|
@ -182,10 +182,14 @@ def server_version_check(cursor):
|
||||||
version_str = result[0]
|
version_str = result[0]
|
||||||
version = version_str.split('.')
|
version = version_str.split('.')
|
||||||
|
|
||||||
|
# Currently we have no facility to handle new-style password update on
|
||||||
|
# mariadb and the old-style update continues to work
|
||||||
|
if version_str.lower().endswith('mariadb'):
|
||||||
|
return True
|
||||||
if (int(version[0]) <= 5 and int(version[1]) < 7):
|
if (int(version[0]) <= 5 and int(version[1]) < 7):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def user_exists(cursor, user, host, host_all):
|
def user_exists(cursor, user, host, host_all):
|
||||||
if host_all:
|
if host_all:
|
||||||
|
|
Loading…
Reference in a new issue