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'