From 4fc1ad9543af50c8e957fb5b77eda52ae3a7e579 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 25 Aug 2017 11:50:09 +0100 Subject: [PATCH] Restoring cryptpad with duplicity style directory --- src/freedombone-app-cryptpad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 7ec7d51f..f547fd86 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -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'