reliability adjustments for updates/synapse.sh

This commit is contained in:
Milan Ihl 2024-05-15 13:21:46 +02:00
parent bdcc677d10
commit 07b6e24576

View File

@ -1,7 +1,9 @@
#!/bin/bash
set -e
export XDG_RUNTIME_DIR=/run/user/$UID
activate="$HOME/synapse/env/bin/activate"
domain=`ls $HOME/doms/`
if [ ! -f $activate ];
then
@ -19,7 +21,7 @@ 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
curl -s "https://$domain/_synapse/admin/v1/server_version"|jq
echo
systemctl --user status synapse