|  | @@ -386,6 +386,11 @@ function install_hubzilla {
 | 
	
		
			
			| 386 | 386 |          chown -R www-data:www-data $HUBZILLA_PATH
 | 
	
		
			
			| 387 | 387 |      fi
 | 
	
		
			
			| 388 | 388 |  
 | 
	
		
			
			|  | 389 | +    if [ ! -f $HUBZILLA_PATH/install/schema_mysql.sql ]; then
 | 
	
		
			
			|  | 390 | +        echo $'No database schema found for hubzilla'
 | 
	
		
			
			|  | 391 | +        exit 252782
 | 
	
		
			
			|  | 392 | +    fi
 | 
	
		
			
			|  | 393 | +
 | 
	
		
			
			| 389 | 394 |      HUBZILLA_ONION_HOSTNAME=
 | 
	
		
			
			| 390 | 395 |      if [[ $ONION_ONLY != "no" ]]; then
 | 
	
		
			
			| 391 | 396 |          HUBZILLA_ONION_HOSTNAME=$(add_onion_service hubzilla 80 ${HUBZILLA_ONION_PORT})
 | 
	
	
		
			
			|  | @@ -578,11 +583,6 @@ function install_hubzilla {
 | 
	
		
			
			| 578 | 583 |      function_check nginx_ensite
 | 
	
		
			
			| 579 | 584 |      nginx_ensite $HUBZILLA_DOMAIN_NAME
 | 
	
		
			
			| 580 | 585 |  
 | 
	
		
			
			| 581 |  | -    # initialize the database
 | 
	
		
			
			| 582 |  | -    if [ ! -f $HUBZILLA_PATH/install/schema_mysql.sql ]; then
 | 
	
		
			
			| 583 |  | -        echo $'No database schema found for hubzilla'
 | 
	
		
			
			| 584 |  | -        exit 252782
 | 
	
		
			
			| 585 |  | -    fi
 | 
	
		
			
			| 586 | 586 |      function_check initialise_database
 | 
	
		
			
			| 587 | 587 |      initialise_database hubzilla $HUBZILLA_PATH/install/schema_mysql.sql
 | 
	
		
			
			| 588 | 588 |  
 |