mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
bepasty: Change default permissions to 'read'
Allow read access by URL by default. Tests: - Installing bepasty fresh show the default permissions as read. - Upgrading bepasty from older version when default permissions are none sets the default permissions to read. - Upgrading bepasty from older version when default permissions are not none retrains the permissions. Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> [sunil: Don't relocate setup() method] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org> Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
889810bb96
commit
f69d8289f6
2 files changed
+5
-2
No files matched your search
+1
-1
@@ -148,7 +148,7 @@ def subcommand_setup(arguments):
|
||||
passwords[1]: 'editor',
|
||||
passwords[2]: 'viewer',
|
||||
},
|
||||
'DEFAULT_PERMISSIONS': '',
|
||||
'DEFAULT_PERMISSIONS': 'read',
|
||||
}
|
||||
conf_file_write(conf)
|
||||
CONF_FILE.chmod(0o640)
|
||||
|
||||
Reference in new issue
Block a user