Restoring cryptpad with duplicity style directory
This commit is contained in:
parent
4890393e4c
commit
4fc1ad9543
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue