From 0e382dbb9416da4e6850ad2a4215a5678dd67a91 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Sun, 20 Jul 2025 14:06:44 -0600 Subject: [PATCH] common: Show warning when migrating to new syntax --- usr/local/share/bastille/common.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 01960720..e29dfa19 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -560,6 +560,11 @@ update_jail_syntax_v1() { # Only apply if old syntax is found if grep -Eoq "exec.prestart.*ifconfig epair[0-9]+ create.*" "${jail_config}"; then + warn "\n[WARNING]\n" + warn "Updating jail.conf to new syntax..." + warn "Please review your jail.conf file after completion." + warm "VNET jails created without -M will be assigned a new MAC address." + if [ "$(echo -n "e0a_${jail}" | awk '{print length}')" -lt 16 ]; then local new_host_epair=e0a_${jail} local new_jail_epair=e0b_${jail}