1
0
Fork 0
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:
Manuel Riel 2019-06-17 15:49:05 +08:00 committed by GitHub
parent 85410c0b65
commit 642ce58225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,