Skip to content

Commit

Permalink
mt: install jail.conf file with store_config
Browse files Browse the repository at this point in the history
so theres a .mt6 laying nearby
  • Loading branch information
msimerson committed Mar 26, 2024
1 parent 2e5f5b5 commit 237a099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions mail-toaster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,7 @@ get_safe_jail_path()

add_jail_conf_d()
{
_safe_path="/etc/jail.conf.d/$(safe_jailname $1).conf"
if [ -f "/etc/jail.conf.d/$1.conf" ]; then
tell_status "preserving jail config $_safe_path"
return
fi

tell_status "creating $_safe_path"
tee "$_safe_path" <<EO_JAIL_RC
store_config "/etc/jail.conf.d/$(safe_jailname $1).conf" <<EO_JAIL_RC
$(jail_conf_header)
$(safe_jailname $1) {$(get_safe_jail_path $1)
Expand Down
2 changes: 1 addition & 1 deletion provision/host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ ext_if="$PUBLIC_NIC"
ext_ip4="$PUBLIC_IP4"
ext_ip6="$PUBLIC_IP6"
table <ext_ip> { \$ext_ip4 \$ext_ip6 } persist
table <ext_ip> { \$ext_ip4, \$ext_ip6 } persist
table <ext_ip4> { \$ext_ip4 } persist
table <ext_ip6> { \$ext_ip6 } persist
Expand Down

0 comments on commit 237a099

Please sign in to comment.