aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/samba.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/jail_confs/samba.j2')
-rw-r--r--templates/jail_confs/samba.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/jail_confs/samba.j2 b/templates/jail_confs/samba.j2
new file mode 100644
index 0000000..24835fa
--- /dev/null
+++ b/templates/jail_confs/samba.j2
@@ -0,0 +1,4 @@
+{% include 'jail_confs/_default.j2' %}
+
+exec.prestart += "mount -t nullfs /usr/local/jails/volumes/storage /usr/local/jails/containers/samba/mnt/storage || echo 'Failed to mount'";
+exec.poststop += "umount /usr/local/jails/containers/samba/mnt/storage || echo 'Failed to umount'";