diff options
Diffstat (limited to 'templates/jail_confs/ingress.j2')
| -rw-r--r-- | templates/jail_confs/ingress.j2 | 2 |
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"; |
