backups: Read file path of known_hosts directly from plinth.config

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Joseph Nuthalapati committed 2019-07-03 12:43:02 +05:30
1 parent 795ed9d735
commit 2c97e1e02e
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
+1 -1
View File
@@ -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