From 64c5b573cfcc0dbe39a27a88372508d237817d7f Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Sun, 26 Apr 2026 23:31:31 +0200 Subject: [PATCH] Update caddy reload command paths in configuration and panelctl scripts Co-authored-by: Copilot --- caddy.nix | 3 ++- configuration.nix | 2 +- panel/panelctl.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/caddy.nix b/caddy.nix index fc786d1..bc5fc81 100755 --- a/caddy.nix +++ b/caddy.nix @@ -3,8 +3,9 @@ services.caddy = { enable = true; email = "admin@srazka.com"; + + # Generated app routes from the panel backend. extraConfig = '' - # Generated app routes from the panel backend. import /var/lib/containers/routes/routes.caddy ''; diff --git a/configuration.nix b/configuration.nix index a7dad5e..ebdad0f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -84,7 +84,7 @@ users = [ "reudy" ]; commands = [ { - command = "${pkgs.systemd}/bin/systemctl reload caddy"; + command = "/run/current-system/sw/bin/systemctl reload caddy"; options = [ "NOPASSWD" ]; } ]; diff --git a/panel/panelctl.sh b/panel/panelctl.sh index 6cd1e6d..f68b749 100644 --- a/panel/panelctl.sh +++ b/panel/panelctl.sh @@ -287,7 +287,7 @@ maybe_reload_caddy() { fi if command -v sudo >/dev/null 2>&1 && sudo -n true >/dev/null 2>&1; then - sudo -n systemctl reload caddy + sudo -n /run/current-system/sw/bin/systemctl reload caddy echo "reloaded caddy via sudo" return fi