Skip to content

A live bird collage card for your Home Assistant dashboard.

Re-adding contents2 for `thisrun.txt` use

Patrick McGuire697f19484e8d
diff --git a/scripts/advanced.php b/scripts/advanced.php
index 31d90fa5..a4c15085 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -34,6 +34,7 @@ if(isset($_GET['submit'])) {
$caddy_pwd = $_GET["caddy_pwd"];
if(strcmp($caddy_pwd,$config['CADDY_PWD']) !== 0) {
$contents = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
+ $contents2 = preg_replace("/CADDY_PWD=.*/", "CADDY_PWD=\"$caddy_pwd\"", $contents);
$fh = fopen('/etc/birdnet/birdnet.conf', "w");
$fh2 = fopen("./scripts/thisrun.txt", "w");
fwrite($fh, $contents);