|  | @@ -491,26 +491,6 @@ function restore_admin_readme {
 | 
	
		
			
			| 491 | 491 |      fi
 | 
	
		
			
			| 492 | 492 |  }
 | 
	
		
			
			| 493 | 493 |  
 | 
	
		
			
			| 494 |  | -function restore_ipfs {
 | 
	
		
			
			| 495 |  | -    if [[ $RESTORE_APP != 'all' ]]; then
 | 
	
		
			
			| 496 |  | -        if [[ $RESTORE_APP != 'ipfs' ]]; then
 | 
	
		
			
			| 497 |  | -            return
 | 
	
		
			
			| 498 |  | -        fi
 | 
	
		
			
			| 499 |  | -    fi
 | 
	
		
			
			| 500 |  | -    if [ -d $USB_MOUNT/backup/ipfs ]; then
 | 
	
		
			
			| 501 |  | -        echo $"Restoring IPFS"
 | 
	
		
			
			| 502 |  | -        restore_directory_from_usb /root/tempipfs ipfs
 | 
	
		
			
			| 503 |  | -        cp -rf /root/tempipfs/home/$ADMIN_USERNAME/.ipfs/* /home/$ADMIN_USERNAME/.ipfs
 | 
	
		
			
			| 504 |  | -        if [ ! "$?" = "0" ]; then
 | 
	
		
			
			| 505 |  | -            rm -rf /root/tempipfs
 | 
	
		
			
			| 506 |  | -            set_user_permissions
 | 
	
		
			
			| 507 |  | -            backup_unmount_drive
 | 
	
		
			
			| 508 |  | -            exit 276
 | 
	
		
			
			| 509 |  | -        fi
 | 
	
		
			
			| 510 |  | -        rm -rf /root/tempipfs
 | 
	
		
			
			| 511 |  | -    fi
 | 
	
		
			
			| 512 |  | -}
 | 
	
		
			
			| 513 |  | -
 | 
	
		
			
			| 514 | 494 |  function restore_user_ssh_keys {
 | 
	
		
			
			| 515 | 495 |      if [[ $RESTORE_APP != 'all' ]]; then
 | 
	
		
			
			| 516 | 496 |          if [[ $RESTORE_APP != 'ssh' ]]; then
 | 
	
	
		
			
			|  | @@ -797,27 +777,6 @@ function restore_mailing_list {
 | 
	
		
			
			| 797 | 777 |      fi
 | 
	
		
			
			| 798 | 778 |  }
 | 
	
		
			
			| 799 | 779 |  
 | 
	
		
			
			| 800 |  | -function restore_xmpp {
 | 
	
		
			
			| 801 |  | -    if [[ $RESTORE_APP != 'all' ]]; then
 | 
	
		
			
			| 802 |  | -        if [[ $RESTORE_APP != 'xmpp' ]]; then
 | 
	
		
			
			| 803 |  | -            return
 | 
	
		
			
			| 804 |  | -        fi
 | 
	
		
			
			| 805 |  | -    fi
 | 
	
		
			
			| 806 |  | -    if [ -d /var/lib/prosody ]; then
 | 
	
		
			
			| 807 |  | -        echo $"Restoring XMPP settings"
 | 
	
		
			
			| 808 |  | -        restore_directory_from_usb /root/tempxmpp xmpp
 | 
	
		
			
			| 809 |  | -        cp -r /root/tempxmpp/var/lib/prosody/* /var/lib/prosody
 | 
	
		
			
			| 810 |  | -        if [ ! "$?" = "0" ]; then
 | 
	
		
			
			| 811 |  | -            set_user_permissions
 | 
	
		
			
			| 812 |  | -            backup_unmount_drive
 | 
	
		
			
			| 813 |  | -            exit 725
 | 
	
		
			
			| 814 |  | -        fi
 | 
	
		
			
			| 815 |  | -        rm -rf /root/tempxmpp
 | 
	
		
			
			| 816 |  | -        service prosody restart
 | 
	
		
			
			| 817 |  | -        chown -R prosody:prosody /var/lib/prosody/*
 | 
	
		
			
			| 818 |  | -    fi
 | 
	
		
			
			| 819 |  | -}
 | 
	
		
			
			| 820 |  | -
 | 
	
		
			
			| 821 | 780 |  function restore_email {
 | 
	
		
			
			| 822 | 781 |      if [[ $RESTORE_APP != 'all' ]]; then
 | 
	
		
			
			| 823 | 782 |          if [[ $RESTORE_APP != 'email' ]]; then
 | 
	
	
		
			
			|  | @@ -905,9 +864,6 @@ restore_certs
 | 
	
		
			
			| 905 | 864 |  restore_personal_settings
 | 
	
		
			
			| 906 | 865 |  restore_mailing_list
 | 
	
		
			
			| 907 | 866 |  
 | 
	
		
			
			| 908 |  | -restore_ipfs
 | 
	
		
			
			| 909 |  | -restore_xmpp
 | 
	
		
			
			| 910 |  | -
 | 
	
		
			
			| 911 | 867 |  restore_email
 | 
	
		
			
			| 912 | 868 |  restore_apps
 | 
	
		
			
			| 913 | 869 |  set_user_permissions
 |