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
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ def get_misc_settings():
def init_db(con):
os.umask(0o0077)
db.initialize(con)
db.connect()
db.create_tables([RepoModel, RepoPassword, BackupProfileModel, SourceFileModel, SettingsModel,