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

Using cli scripts & allowing config changes

This commit is contained in:
Dennis Schwerdel
2017-02-23 15:25:53 +01:00
parent b48681e37c
commit a3014a0fdb
4 changed files with 36 additions and 54 deletions

22
set_config.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
$config = include("/app/data/config.php");
$config["default_user"] = "admin";
$config["base_url"] = "https://".getenv('APP_DOMAIN')."/p";
$config["db"] = array (
"type" => "mysql",
"host" => getenv('MYSQL_HOST'),
"user" => getenv('MYSQL_USERNAME'),
"password" => getenv('MYSQL_PASSWORD'),
"base" => getenv('MYSQL_DATABASE'),
"prefix" => "",
"pdo_options" =>
array (
)
);
$config_str = var_export($config, TRUE);
file_put_contents("/app/data/config.php", "<?php return $config_str;");
?>