1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

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

This commit is contained in:
Helmuth Gronewold 2014-08-24 21:27:39 +02:00
parent ee9552734f
commit 90c7655d82

View File

@ -58,7 +58,7 @@ def migration_4(env):
def migration_5(env): def migration_5(env):
# The secret key for encrypting backups was world readable. Fix here. # 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(): def get_current_migration():
ver = 0 ver = 0