Updating Matrix Synapse on FreeBSD

For those of you who are wondering how complicate it is to update a synapse server in a jail:

 #!/usr/local/bin/bash
zfs snapshot zroot/bastille/jails/matrix/root@2delete-`date +%Y%m%d_%H%M`
bastille cmd matrix pip install --upgrade matrix-synapse
bastille restart matrix

I do not remember a problem for the last year.

(the zfs snapshort part is only necessary if your are old and/or frightened)