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