mirror of
https://github.com/borgbase/vorta
synced 2024-12-23 08:17:08 +00:00
Set umask to 077 before creating DB file. (#300)
This commit is contained in:
parent
85410c0b65
commit
642ce58225
1 changed files with 1 additions and 0 deletions
|
@ -238,6 +238,7 @@ def get_misc_settings():
|
||||||
|
|
||||||
|
|
||||||
def init_db(con):
|
def init_db(con):
|
||||||
|
os.umask(0o0077)
|
||||||
db.initialize(con)
|
db.initialize(con)
|
||||||
db.connect()
|
db.connect()
|
||||||
db.create_tables([RepoModel, RepoPassword, BackupProfileModel, SourceFileModel, SettingsModel,
|
db.create_tables([RepoModel, RepoPassword, BackupProfileModel, SourceFileModel, SettingsModel,
|
||||||
|
|
Loading…
Reference in a new issue