mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Read file path of known_hosts directly from plinth.config
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
8 files changed
+10
-8
No files matched your search
@@ -7,6 +7,7 @@ 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')) == 9
|
||||
assert len(parser.items('Path')) == 10
|
||||
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