From 87d80bcf42f65c129079ad6e84f02cc94b4ceb1b Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Tue, 3 Mar 2026 12:13:19 +0100 Subject: [PATCH] Make it invoke bash the Nix way. --- nix-system-configs/modules/system/traefik.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix-system-configs/modules/system/traefik.nix b/nix-system-configs/modules/system/traefik.nix index 6d2337a..1393056 100644 --- a/nix-system-configs/modules/system/traefik.nix +++ b/nix-system-configs/modules/system/traefik.nix @@ -577,7 +577,7 @@ in { # PRG Cloudflare DDNS updater - split into a single-run upstream script and a wrapper that loops records environment.etc."cloudflare-ddns/update-single.sh" = { text = '' - #!/usr/bin/env bash + #!${pkgs.bash}/bin/bash ## K0p1-Git cloudflare-ddns-updater (packaged copy) ## Upstream: https://github.com/K0p1-Git/cloudflare-ddns-updater ## Author: K0p1-Git @@ -711,7 +711,7 @@ in { environment.etc."cloudflare-ddns/update.sh" = { text = '' - #!/usr/bin/env bash + #!${pkgs.bash}/bin/bash set -euo pipefail # Wrapper: source env, map tokens, loop declared records and call the upstream single-run script @@ -741,7 +741,7 @@ in { export record_name="$r.${domain}" fi # Invoke the single-run script explicitly with the system's bash via env to avoid /bin/bash shebang issues - /usr/bin/env bash /etc/cloudflare-ddns/update-single.sh || true + ${pkgs.bash}/bin/bash /etc/cloudflare-ddns/update-single.sh || true done '';