Restoring cryptpad with duplicity style directory

This commit is contained in:
Bob Mottram 2017-08-25 11:50:09 +01:00
parent 4890393e4c
commit 4fc1ad9543
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ function restore_local_cryptpad {
function_check restore_directory_from_usb
restore_directory_from_usb $temp_restore_dir cryptpad
if [ ! -d $temp_restore_dir$CRYPTPAD_DIR/datastore ]; then
if [ -d $temp_restore_dir$CRYPTPAD_DIR ]; then
cp -r $temp_restore_dir$CRYPTPAD_DIR/* $CRYPTPAD_DIR/datastore/
if [ -d $temp_restore_dir ]; then
cp -r $temp_restore_dir/* $CRYPTPAD_DIR/datastore/
else
systemctl start cryptpad
echo 'Failed to restore cryptpad'