|  | @@ -723,16 +723,22 @@ function create_searx_config {
 | 
	
		
			
			| 723 | 723 |  }
 | 
	
		
			
			| 724 | 724 |  
 | 
	
		
			
			| 725 | 725 |  function upgrade_searx {
 | 
	
		
			
			|  | 726 | +    settings_file=${SEARX_PATH}/searx/searx/settings.yml
 | 
	
		
			
			| 726 | 727 |      background_image=/etc/searx/searx/static/themes/courgette/img/bg-body-index.jpg
 | 
	
		
			
			| 727 | 728 |      if [ -f ${background_image} ]; then
 | 
	
		
			
			| 728 | 729 |          cp ${background_image} ${background_image}.prev
 | 
	
		
			
			| 729 | 730 |      fi
 | 
	
		
			
			|  | 731 | +    cp ${settings_file} ${settings_file}.prev
 | 
	
		
			
			| 730 | 732 |  
 | 
	
		
			
			| 731 | 733 |      set_repo_commit $SEARX_PATH/searx "searx commit" "$SEARX_COMMIT" $SEARX_REPO
 | 
	
		
			
			| 732 | 734 |      if [ -f ${background_image}.prev ]; then
 | 
	
		
			
			| 733 | 735 |          cp ${background_image}.prev ${background_image}
 | 
	
		
			
			| 734 | 736 |          chown -R searx:searx ${SEARX_PATH}/searx
 | 
	
		
			
			| 735 | 737 |      fi
 | 
	
		
			
			|  | 738 | +    if [ -f ${settings_file}.prev ]; then
 | 
	
		
			
			|  | 739 | +        cp ${settings_file}.prev ${settings_file}
 | 
	
		
			
			|  | 740 | +        chown -R searx:searx ${SEARX_PATH}/searx
 | 
	
		
			
			|  | 741 | +    fi
 | 
	
		
			
			| 736 | 742 |  }
 | 
	
		
			
			| 737 | 743 |  
 | 
	
		
			
			| 738 | 744 |  function backup_local_searx {
 |