diff --git a/updates/synapse.sh b/updates/synapse.sh new file mode 100644 index 0000000..16daca0 --- /dev/null +++ b/updates/synapse.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -e + +activate="$HOME/synapse/env/bin/activate" + +if [ ! -f $activate ]; +then + echo ">>> FATAL: Synapse env not detected. Stopping. Please adjust the script." + exit 1 +fi + +source $activate + +pip install --upgrade 'matrix-synapse[postgres]' pip + +systemctl --user restart synapse + +sleep 2 +echo +echo ">>> Synapse has been restarted and" +echo ">>> is now reporting this version:" +curl -s localhost:8008/_synapse/admin/v1/server_version|jq +echo + +systemctl --user status synapse \ No newline at end of file