From 1f0a03e34fd2644dec60bba817cf54130f3a1c2e Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 21 May 2025 12:13:11 -0600 Subject: [PATCH] Update create.sh --- usr/local/share/bastille/create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index b9a71325..cd45ff85 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -692,7 +692,8 @@ create_jail() { # Apply nameserver (if set) if [ -n "${OPT_NAMESERVER}" ]; then - sed -i '' "s#nameserver.*#nameserver ${OPT_NAMESERVER}#" "${bastille_jail_resolv_conf}" + sed -i '' "/^nameserver.*/d" "${bastille_jail_resolv_conf}" + echo "nameserver ${OPT_NAMESERVER}" >> "${bastille_jail_resolv_conf}" fi # Apply values changed by the template. -- cwells