mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Remove known_hosts file from config file
- There is no compelling reason to make the file configurable. Simplifies configuration file if we make it relative to FreedomBox data directory. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
76efccce37
commit
463c620c65
8 files changed
+19
-15
No files matched your search
@@ -7,7 +7,6 @@ server_dir = /plinth
|
||||
actions_dir = %(file_root)s/actions
|
||||
doc_dir = %(file_root)s/doc
|
||||
custom_static_dir = %(file_root)s/data/var/www/plinth/custom/static
|
||||
known_hosts = %(data_dir)s/.ssh/known_hosts
|
||||
|
||||
# file locations
|
||||
store_file = %(data_dir)s/plinth.sqlite3
|
||||
|
||||
@@ -120,7 +120,7 @@ def compare_configurations(parser):
|
||||
"""Compare two sets of configuration values."""
|
||||
# Note that the count of items within each section includes the number
|
||||
# of default items (1, for 'root').
|
||||
assert len(parser.items('Path')) == 10
|
||||
assert len(parser.items('Path')) == 9
|
||||
assert parser.get('Path', 'root') == cfg.root
|
||||
assert parser.get('Path', 'file_root') == cfg.file_root
|
||||
assert parser.get('Path', 'config_dir') == cfg.config_dir
|
||||
|
||||
Reference in new issue
Block a user