aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/syncthing.j2
blob: 6c518ff2bfa71e0785d77db8c75104f241dd3a18 (plain)
1
2
3
4
5
6
7
8
9
{% include 'jail_confs/_default.j2' %}

exec.prestart    += "mount -t nullfs /usr/local/jails/volumes/storage/docs /usr/local/jails/containers/syncthing/mnt/docs || echo 'Failed to mount'";
exec.prestart    += "mount -t nullfs /usr/local/jails/volumes/storage/vault /usr/local/jails/containers/syncthing/mnt/vault || echo 'Failed to mount'";
exec.prestart    += "mount -t nullfs /usr/local/jails/volumes/storage/jan-systems-2025-content /usr/local/jails/containers/syncthing/mnt/jan-systems-2025-content || echo 'Failed to mount'";

exec.poststop    += "umount /usr/local/jails/containers/syncthing/mnt/jan-systems-2025-content || echo 'Failed to umount'";
exec.poststop    += "umount /usr/local/jails/containers/syncthing/mnt/vault || echo 'Failed to umount'";
exec.poststop    += "umount /usr/local/jails/containers/syncthing/mnt/docs || echo 'Failed to umount'";