From b92270bca5c5ff871bc88acd6d9fcaee1918f954 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 16 Oct 2024 12:07:35 -0700 Subject: [PATCH] host: vivify local dirs, improve pf when no ipv6 --- provision/host.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/provision/host.sh b/provision/host.sh index 6d94a954..894499d9 100755 --- a/provision/host.sh +++ b/provision/host.sh @@ -205,6 +205,7 @@ sshd_reorder() fi tell_status "starting sshd earlier" + if [ ! -d "/usr/local/etc/rc.d" ]; then mkdir -p "/usr/local/etc/rc.d"; fi tee "$_file" </ s/, \$ext_ip6//' \ + /etc/pf.conf + fi + kldstat -q -m pf || kldload pf grep -q ^pf_enable /etc/rc.conf || sysrc pf_enable=YES @@ -419,6 +426,7 @@ install_jailmanage() if [ -s /usr/local/bin/jailmanage ]; then return; fi tell_status "installing jailmanage" + if [ ! -d "/usr/local/bin" ]; then mkdir -p "/usr/local/bin"; fi fetch -o /usr/local/bin/jailmanage https://raw.githubusercontent.com/msimerson/jailmanage/master/jailmanage.sh chmod 755 /usr/local/bin/jailmanage }