mirror of https://github.com/veops/cmdb.git
chore: update docker compose
This commit is contained in:
parent
b405e28498
commit
c1813f525d
|
@ -515,6 +515,7 @@ def cmdb_patch(version):
|
|||
|
||||
version = version[1:] if version.lower().startswith("v") else version
|
||||
|
||||
try:
|
||||
if version >= '2.4.6':
|
||||
|
||||
from api.models.cmdb import CITypeRelation
|
||||
|
@ -556,3 +557,5 @@ def cmdb_patch(version):
|
|||
existed.update(option=option, commit=False)
|
||||
|
||||
db.session.commit()
|
||||
except Exception as e:
|
||||
print("cmdb patch failed: {}".format(e))
|
||||
|
|
|
@ -71,6 +71,7 @@ services:
|
|||
flask cmdb-init-acl
|
||||
flask init-import-user-from-acl
|
||||
flask init-department
|
||||
flask cmdb-patch -v 2.4.7
|
||||
flask cmdb-counter > counter.log 2>&1
|
||||
networks:
|
||||
new:
|
||||
|
|
Loading…
Reference in New Issue