summaryrefslogtreecommitdiffstats
path: root/lib/App/BorgRestore.pm
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 21:42:25 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:31:49 +0200
commit4c84b1a04348e317ef2b9e014e4bd06bfc6d8cf2 (patch)
tree178c403acbbf9919559796502038b76d08864a34 /lib/App/BorgRestore.pm
parent0d24899b78307e33d72a693d33178343069187dd (diff)
downloadApp-BorgRestore-4c84b1a04348e317ef2b9e014e4bd06bfc6d8cf2.tar.gz
App-BorgRestore-4c84b1a04348e317ef2b9e014e4bd06bfc6d8cf2.tar.xz
Move database path to Settings
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/BorgRestore.pm')
-rw-r--r--lib/App/BorgRestore.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index 218be49..90b7d61 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -83,8 +83,7 @@ sub new {
my $self = {};
bless $self, $class;
- my $db_path = App::BorgRestore::Settings::get_cache_path('archives.db');
- # TODO: make db_path configurable, probably settings too
+ my $db_path = App::BorgRestore::Settings::get_db_path();
$self->{borg} = $deps->{borg} // App::BorgRestore::Borg->new();
$self->{db} = $deps->{db} // App::BorgRestore::DB->new($db_path);