Commit 90c7655d authored by Helmuth Gronewold's avatar Helmuth Gronewold

Fix wrong permissions of backup secret. Pyhton 3 needs octal permissions.

parent ee955273
......@@ -58,7 +58,7 @@ def migration_4(env):
def migration_5(env):
# The secret key for encrypting backups was world readable. Fix here.
os.chmod(os.path.join(env["STORAGE_ROOT"], 'backup/secret_key.txt'), 600)
os.chmod(os.path.join(env["STORAGE_ROOT"], 'backup/secret_key.txt'), 0o600)
def get_current_migration():
ver = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment