diff --git a/updates/synapse.sh b/updates/synapse.sh index 16daca0..3a0e4ee 100644 --- a/updates/synapse.sh +++ b/updates/synapse.sh @@ -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 \ No newline at end of file