mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-24 00:49:16 +00:00
fix: Init db error
This commit is contained in:
parent
d0e625e322
commit
ee7c6b4708
@ -222,7 +222,7 @@ def init_sqlite_db():
|
||||
settings.APPS_DIR, 'accounts', 'automations',
|
||||
'check_account', 'leak_passwords.db'
|
||||
)
|
||||
|
||||
os.makedirs(os.path.dirname(db_path), exist_ok=True)
|
||||
shutil.copy(src, db_path)
|
||||
logger.info(f'init sqlite db {db_path}')
|
||||
return db_path
|
||||
|
Loading…
Reference in New Issue
Block a user