1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2025-09-25 22:37:25 +00:00

Initial commit

This commit is contained in:
Dennis Schwerdel
2017-02-17 09:45:48 +01:00
commit 0b95d20d1e
14 changed files with 240 additions and 0 deletions

14
setup_db.php Normal file
View File

@@ -0,0 +1,14 @@
<?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();