schema path fixed in configure-db.php
This commit is contained in:
		
							parent
							
								
									f6e953765f
								
							
						
					
					
						commit
						1430a90147
					
				@ -87,7 +87,7 @@ try {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
catch (PDOException $e) {
 | 
					catch (PDOException $e) {
 | 
				
			||||||
    echo 'Database table not found, applying schema... ' . PHP_EOL;
 | 
					    echo 'Database table not found, applying schema... ' . PHP_EOL;
 | 
				
			||||||
    $schema = file_get_contents('schema/ttrss_schema_' . $config['DB_TYPE'] . '.sql');
 | 
					    $schema = file_get_contents('/var/www/schema/ttrss_schema_' . $config['DB_TYPE'] . '.sql');
 | 
				
			||||||
    $schema = preg_replace('/--(.*?);/', '', $schema);
 | 
					    $schema = preg_replace('/--(.*?);/', '', $schema);
 | 
				
			||||||
    $schema = preg_replace('/[\r\n]/', ' ', $schema);
 | 
					    $schema = preg_replace('/[\r\n]/', ' ', $schema);
 | 
				
			||||||
    $schema = trim($schema, ' ;');
 | 
					    $schema = trim($schema, ' ;');
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user