Skip to content

Commit

Permalink
Adding etc dir as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren committed Oct 24, 2023
1 parent 47edda7 commit b6ba56d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions overlay/etc/bf/init.d/10-env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ bf env load

# Set environment variables
def main [] {
bf env set UNBOUND_CONF "/etc/unbound/unbound.conf"
let etc = "/etc/unbound"
bf env set UNBOUND_ETC $etc
bf env set UNBOUND_CONF $"($etc)/unbound.conf"

if (bf env check UNBOUND_ENABLE_DNSSEC) {
bf env set UNBOUND_ROOT_HINTS "/etc/unbound/root.hints"
bf env set UNBOUND_ROOT_KEY "/etc/unbound/root.key"
bf env set UNBOUND_ROOT_HINTS $"($etc)/root.hints"
bf env set UNBOUND_ROOT_KEY $"($etc)/root.key"
}

# return nothing
Expand Down

0 comments on commit b6ba56d

Please sign in to comment.