Skip to content

Commit

Permalink
Update ttrss-configure-db.php
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgilles committed Feb 23, 2021
1 parent 205cb00 commit 8d6350a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/srv/ttrss-configure-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@

$contents = file_get_contents($conffile);
foreach ($config as $name => $value) {
$contents = preg_replace('/(define\s*\(\'' . $name . '\',\s*)(.*)(\);)/', '$1"' . $value . '"$3', $contents);
$contents .= "putenv('TTRSS_" . $name . "=" . $value . "');\n";
}
file_put_contents($conffile, $contents);

0 comments on commit 8d6350a

Please sign in to comment.