Skip to content
Snippets Groups Projects
Commit f2bc6d60 authored by nosmo's avatar nosmo
Browse files

Error out if archive dir doesn't exist

parent e0b43754
Branches
Tags
No related merge requests found
...@@ -225,6 +225,7 @@ fi ...@@ -225,6 +225,7 @@ fi
# duplicity now enables the archive_dir by default, let's put it into /var/cache/backupninja/duplicity # duplicity now enables the archive_dir by default, let's put it into /var/cache/backupninja/duplicity
# unless the user has specified it. # unless the user has specified it.
if echo "${options}" | grep -qv -- "--archive-dir" ; then if echo "${options}" | grep -qv -- "--archive-dir" ; then
[ -d "/var/cache/backupninja/duplicity" ] || fatal "/var/cache/backupninja/duplicity does not exist - create it"
execstr_options="${execstr_options} --archive-dir /var/cache/backupninja/duplicity" execstr_options="${execstr_options} --archive-dir /var/cache/backupninja/duplicity"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment