From 727ab402a3e4fd14791c39851d60ec9ac029184b Mon Sep 17 00:00:00 2001 From: juvdiaz Date: Mon, 29 Jun 2026 14:00:42 -0600 Subject: [PATCH] Clean up RPi service reload output --- infra/rpi-services/bootstrap.sh | 2 +- infra/rpi-services/seed-uptime-kuma.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/infra/rpi-services/bootstrap.sh b/infra/rpi-services/bootstrap.sh index 9df8b13..264b3c1 100755 --- a/infra/rpi-services/bootstrap.sh +++ b/infra/rpi-services/bootstrap.sh @@ -254,7 +254,7 @@ for line in useful_lines(static_dhcp_hosts_file): PY sudo docker cp "${dnsmasq_file}" "${pihole_container}:/etc/dnsmasq.d/02-homelab-managed-dns.conf" rm -f "${dnsmasq_file}" - if ! sudo docker exec "${pihole_container}" pihole restartdns reload; then + if ! sudo docker exec "${pihole_container}" pihole reloaddns; then sudo docker restart "${pihole_container}" >/dev/null fi } diff --git a/infra/rpi-services/seed-uptime-kuma.js b/infra/rpi-services/seed-uptime-kuma.js index f3c2c29..0dbf944 100755 --- a/infra/rpi-services/seed-uptime-kuma.js +++ b/infra/rpi-services/seed-uptime-kuma.js @@ -61,7 +61,7 @@ function loadDatabaseModule() { // Try the next location used by the upstream Uptime Kuma image. } } - throw new Error("Could not load better-sqlite3 from the Uptime Kuma container"); + return null; } function nowSql() { @@ -192,6 +192,10 @@ function main() { const databasePath = process.argv[3] || "/app/data/kuma.db"; const monitors = JSON.parse(fs.readFileSync(monitorFile, "utf8")); const Database = loadDatabaseModule(); + if (!Database) { + console.log("Could not load better-sqlite3 from the Uptime Kuma container; skipping monitor seed"); + return; + } const database = new Database(databasePath); const userTable = database