mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
Make it invoke bash the Nix way.
This commit is contained in:
parent
4b2f687829
commit
87d80bcf42
1 changed files with 3 additions and 3 deletions
|
|
@ -577,7 +577,7 @@ in {
|
||||||
# PRG Cloudflare DDNS updater - split into a single-run upstream script and a wrapper that loops records
|
# PRG Cloudflare DDNS updater - split into a single-run upstream script and a wrapper that loops records
|
||||||
environment.etc."cloudflare-ddns/update-single.sh" = {
|
environment.etc."cloudflare-ddns/update-single.sh" = {
|
||||||
text = ''
|
text = ''
|
||||||
#!/usr/bin/env bash
|
#!${pkgs.bash}/bin/bash
|
||||||
## K0p1-Git cloudflare-ddns-updater (packaged copy)
|
## K0p1-Git cloudflare-ddns-updater (packaged copy)
|
||||||
## Upstream: https://github.com/K0p1-Git/cloudflare-ddns-updater
|
## Upstream: https://github.com/K0p1-Git/cloudflare-ddns-updater
|
||||||
## Author: K0p1-Git
|
## Author: K0p1-Git
|
||||||
|
|
@ -711,7 +711,7 @@ in {
|
||||||
|
|
||||||
environment.etc."cloudflare-ddns/update.sh" = {
|
environment.etc."cloudflare-ddns/update.sh" = {
|
||||||
text = ''
|
text = ''
|
||||||
#!/usr/bin/env bash
|
#!${pkgs.bash}/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Wrapper: source env, map tokens, loop declared records and call the upstream single-run script
|
# 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}"
|
export record_name="$r.${domain}"
|
||||||
fi
|
fi
|
||||||
# Invoke the single-run script explicitly with the system's bash via env to avoid /bin/bash shebang issues
|
# 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
|
done
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue