| 
				
			 | 
			
			
				@@ -666,61 +666,6 @@ function restore_mailing_list { 
			 | 
		
	
		
			
			| 
				666
			 | 
			
				666
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				667
			 | 
			
				667
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				668
			 | 
			
				668
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				669
			 | 
			
				
			 | 
			
			
				-function restore_voip { 
			 | 
		
	
		
			
			| 
				670
			 | 
			
				
			 | 
			
			
				-	if [[ $RESTORE_APP != 'all' ]]; then 
			 | 
		
	
		
			
			| 
				671
			 | 
			
				
			 | 
			
			
				-		if [[ $RESTORE_APP != 'voip' ]]; then 
			 | 
		
	
		
			
			| 
				672
			 | 
			
				
			 | 
			
			
				-			return 
			 | 
		
	
		
			
			| 
				673
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				674
			 | 
			
				
			 | 
			
			
				-	fi 
			 | 
		
	
		
			
			| 
				675
			 | 
			
				
			 | 
			
			
				-	if [ -d $SERVER_DIRECTORY/backup/voip ]; then 
			 | 
		
	
		
			
			| 
				676
			 | 
			
				
			 | 
			
			
				-		echo $"Restoring VoIP settings" 
			 | 
		
	
		
			
			| 
				677
			 | 
			
				
			 | 
			
			
				-		temp_restore_dir=/root/tempvoip 
			 | 
		
	
		
			
			| 
				678
			 | 
			
				
			 | 
			
			
				-		restore_directory_from_friend $temp_restore_dir voip 
			 | 
		
	
		
			
			| 
				679
			 | 
			
				
			 | 
			
			
				-		cp -f $temp_restore_dir/home/$ADMIN_USERNAME/tempbackup/mumble-server.ini /etc/ 
			 | 
		
	
		
			
			| 
				680
			 | 
			
				
			 | 
			
			
				-		if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				681
			 | 
			
				
			 | 
			
			
				-			rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				682
			 | 
			
				
			 | 
			
			
				-			exit 7823 
			 | 
		
	
		
			
			| 
				683
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				684
			 | 
			
				
			 | 
			
			
				-		cp -f $temp_restore_dir/home/$ADMIN_USERNAME/tempbackup/sipwitch.conf /etc/sipwitch.conf 
			 | 
		
	
		
			
			| 
				685
			 | 
			
				
			 | 
			
			
				-		if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				686
			 | 
			
				
			 | 
			
			
				-			rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				687
			 | 
			
				
			 | 
			
			
				-			exit 7823 
			 | 
		
	
		
			
			| 
				688
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				689
			 | 
			
				
			 | 
			
			
				-		cp -f $temp_restore_dir/home/$ADMIN_USERNAME/tempbackup/mumble-server.sqlite /var/lib/mumble-server/ 
			 | 
		
	
		
			
			| 
				690
			 | 
			
				
			 | 
			
			
				-		if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				691
			 | 
			
				
			 | 
			
			
				-			rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				692
			 | 
			
				
			 | 
			
			
				-			exit 276 
			 | 
		
	
		
			
			| 
				693
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				694
			 | 
			
				
			 | 
			
			
				-		rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				695
			 | 
			
				
			 | 
			
			
				-		cp /etc/ssl/certs/mumble* /var/lib/mumble-server 
			 | 
		
	
		
			
			| 
				696
			 | 
			
				
			 | 
			
			
				-		cp /etc/ssl/private/mumble* /var/lib/mumble-server 
			 | 
		
	
		
			
			| 
				697
			 | 
			
				
			 | 
			
			
				-		chown -R mumble-server:mumble-server /var/lib/mumble-server 
			 | 
		
	
		
			
			| 
				698
			 | 
			
				
			 | 
			
			
				-		service sipwitch restart 
			 | 
		
	
		
			
			| 
				699
			 | 
			
				
			 | 
			
			
				-		service mumble-server restart 
			 | 
		
	
		
			
			| 
				700
			 | 
			
				
			 | 
			
			
				-	fi 
			 | 
		
	
		
			
			| 
				701
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				702
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				703
			 | 
			
				
			 | 
			
			
				-function restore_tox { 
			 | 
		
	
		
			
			| 
				704
			 | 
			
				
			 | 
			
			
				-	if [[ $RESTORE_APP != 'all' ]]; then 
			 | 
		
	
		
			
			| 
				705
			 | 
			
				
			 | 
			
			
				-		if [[ $RESTORE_APP != 'tox' ]]; then 
			 | 
		
	
		
			
			| 
				706
			 | 
			
				
			 | 
			
			
				-			return 
			 | 
		
	
		
			
			| 
				707
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				708
			 | 
			
				
			 | 
			
			
				-	fi 
			 | 
		
	
		
			
			| 
				709
			 | 
			
				
			 | 
			
			
				-	if [ -d $SERVER_DIRECTORY/backup/tox ]; then 
			 | 
		
	
		
			
			| 
				710
			 | 
			
				
			 | 
			
			
				-		echo $"Restoring Tox node settings" 
			 | 
		
	
		
			
			| 
				711
			 | 
			
				
			 | 
			
			
				-		restore_directory_from_friend / tox 
			 | 
		
	
		
			
			| 
				712
			 | 
			
				
			 | 
			
			
				-		if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				713
			 | 
			
				
			 | 
			
			
				-			exit 93653 
			 | 
		
	
		
			
			| 
				714
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				715
			 | 
			
				
			 | 
			
			
				-		cp /var/lib/tox-bootstrapd/tox-bootstrapd.conf /etc/tox-bootstrapd.conf 
			 | 
		
	
		
			
			| 
				716
			 | 
			
				
			 | 
			
			
				-		systemctl restart tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				717
			 | 
			
				
			 | 
			
			
				-		if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				718
			 | 
			
				
			 | 
			
			
				-			systemctl status tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				719
			 | 
			
				
			 | 
			
			
				-			exit 59369 
			 | 
		
	
		
			
			| 
				720
			 | 
			
				
			 | 
			
			
				-		fi 
			 | 
		
	
		
			
			| 
				721
			 | 
			
				
			 | 
			
			
				-	fi 
			 | 
		
	
		
			
			| 
				722
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				723
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				724
			 | 
			
				669
			 | 
			
			
				 function restore_email { 
			 | 
		
	
		
			
			| 
				725
			 | 
			
				670
			 | 
			
			
				 	if [[ $RESTORE_APP != 'all' ]]; then 
			 | 
		
	
		
			
			| 
				726
			 | 
			
				671
			 | 
			
			
				 		if [[ $RESTORE_APP != 'email' ]]; then 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -794,8 +739,6 @@ restore_mailing_list 
			 | 
		
	
		
			
			| 
				794
			 | 
			
				739
			 | 
			
			
				 restore_email 
			 | 
		
	
		
			
			| 
				795
			 | 
			
				740
			 | 
			
			
				 #restore_apps remote 
			 | 
		
	
		
			
			| 
				796
			 | 
			
				741
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				797
			 | 
			
				
			 | 
			
			
				-restore_voip 
			 | 
		
	
		
			
			| 
				798
			 | 
			
				
			 | 
			
			
				-restore_tox 
			 | 
		
	
		
			
			| 
				799
			 | 
			
				742
			 | 
			
			
				 restore_dlna 
			 | 
		
	
		
			
			| 
				800
			 | 
			
				743
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				801
			 | 
			
				744
			 | 
			
			
				 echo $"*** Remote restore was successful ***" 
			 |