aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/ingress.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-03-04 09:15:06 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-03-04 09:15:06 +0200
commitafd15cdfce242016906d5c95736d1a7967ca0b50 (patch)
treee2bc08bc6e35ea010cb943d7ce8b7886c0520e40 /templates/jail_confs/ingress.j2
parent94f4fecc1ee69fadbae619683f62a41d97f93c1a (diff)
Move jail nullfs mounts to jail scripts
Diffstat (limited to 'templates/jail_confs/ingress.j2')
-rw-r--r--templates/jail_confs/ingress.j22
1 files changed, 2 insertions, 0 deletions
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";