From afd15cdfce242016906d5c95736d1a7967ca0b50 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 4 Mar 2026 09:15:06 +0200 Subject: Move jail nullfs mounts to jail scripts --- templates/jail_confs/ingress.j2 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/jail_confs/ingress.j2') diff --git a/templates/jail_confs/ingress.j2 b/templates/jail_confs/ingress.j2 index d6e4cad..59db3f1 100644 --- a/templates/jail_confs/ingress.j2 +++ b/templates/jail_confs/ingress.j2 @@ -12,4 +12,6 @@ exec.poststart += "jexec ${name} ifconfig epw{{ jail.num }}b up"; exec.poststart += "ifconfig epw{{ jail.num }}a up"; exec.poststart += "jexec ${name} service dhclient restart epw{{ jail.num }}b"; +exec.prestart += "mount -t nullfs /usr/local/jails/containers/goaccess/var/www/goaccess /usr/local/jails/containers/ingress/mnt/www_goaccess || echo 'Failed to mount'"; +exec.poststop += "umount /usr/local/jails/containers/ingress/mnt/www_goaccess || echo 'Failed to umount'"; exec.poststop += "ifconfig epw{{ jail.num }}a destroy"; -- cgit v1.3