Skip to content
Snippets Groups Projects
Commit 4fc1ad95 authored by Bob Mottram's avatar Bob Mottram
Browse files

Restoring cryptpad with duplicity style directory

parent 4890393e
No related branches found
No related tags found
No related merge requests found
...@@ -123,8 +123,8 @@ function restore_local_cryptpad { ...@@ -123,8 +123,8 @@ function restore_local_cryptpad {
function_check restore_directory_from_usb function_check restore_directory_from_usb
restore_directory_from_usb $temp_restore_dir cryptpad restore_directory_from_usb $temp_restore_dir cryptpad
if [ ! -d $temp_restore_dir$CRYPTPAD_DIR/datastore ]; then if [ ! -d $temp_restore_dir$CRYPTPAD_DIR/datastore ]; then
if [ -d $temp_restore_dir$CRYPTPAD_DIR ]; then if [ -d $temp_restore_dir ]; then
cp -r $temp_restore_dir$CRYPTPAD_DIR/* $CRYPTPAD_DIR/datastore/ cp -r $temp_restore_dir/* $CRYPTPAD_DIR/datastore/
else else
systemctl start cryptpad systemctl start cryptpad
echo 'Failed to restore cryptpad' echo 'Failed to restore cryptpad'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment