Browse Source

Restoring tox

Bob Mottram 9 years ago
parent
commit
4aadbbd32c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone

+ 2
- 2
src/freedombone View File

@@ -3755,7 +3755,7 @@ function create_restore_script {
3755 3755
 
3756 3756
   echo 'if [ -d $USB_MOUNT/backup/tox ]; then' >> /usr/bin/$RESTORE_SCRIPT_NAME
3757 3757
   echo '  echo "Restoring Tox node settings"' >> /usr/bin/$RESTORE_SCRIPT_NAME
3758
-  echo '  restore_directory_from_usb /var/lib/tox-bootstrapd tox' >> /usr/bin/$RESTORE_SCRIPT_NAME
3758
+  echo '  restore_directory_from_usb / tox' >> /usr/bin/$RESTORE_SCRIPT_NAME
3759 3759
   echo '  if [ ! "$?" = "0" ]; then' >> /usr/bin/$RESTORE_SCRIPT_NAME
3760 3760
   echo '    umount $USB_MOUNT' >> /usr/bin/$RESTORE_SCRIPT_NAME
3761 3761
   echo '    rm -rf $USB_MOUNT' >> /usr/bin/$RESTORE_SCRIPT_NAME
@@ -5190,7 +5190,7 @@ function restore_from_friend {
5190 5190
 
5191 5191
   echo 'if [ -d $SERVER_DIRECTORY/backup/tox ]; then' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5192 5192
   echo '  echo "Restoring Tox node settings"' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5193
-  echo '  restore_directory_from_friend /var/lib/tox-bootstrapd tox' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5193
+  echo '  restore_directory_from_friend / tox' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5194 5194
   echo '  if [ ! "$?" = "0" ]; then' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5195 5195
   echo '    exit 93653' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME
5196 5196
   echo '  fi' >> /usr/bin/$RESTORE_FROM_FRIEND_SCRIPT_NAME