reliability adjustments for updates/synapse.sh
This commit is contained in:
parent
bdcc677d10
commit
07b6e24576
@ -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
|
Loading…
Reference in New Issue
Block a user