1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2025-01-03 19:23:50 +00:00
freshrss-app/setup_db.php
Dennis Schwerdel 0b95d20d1e Initial commit
2017-02-17 09:45:48 +01:00

15 lines
428 B
PHP

<?PHP
include_once('/app/code/app/SQL/install.sql.mysql.php');
$c = new PDO("mysql:dbname=".getenv('MYSQL_DATABASE').";host=".getenv('MYSQL_HOST').";port=".getenv('MYSQL_PORT'), getenv('MYSQL_USERNAME'), getenv('MYSQL_PASSWORD'));
$sql = sprintf(SQL_CREATE_TABLES, 'admin_', 'Uncategorized');
$stm = $c->prepare($sql);
$stm->execute();
$sql = sprintf(SQL_INSERT_FEEDS, 'admin_');
$stm = $c->prepare($sql);
$stm->execute();