This commit is contained in:
olli 2024-08-18 16:35:28 +02:00
parent 05c75a8921
commit cbcbf28eec

View File

@ -774,8 +774,13 @@
[ -n "$togroup" ] && room=$togroup
if ps ax | grep -v grep | grep -q synapse.app.homeserver
then
if [ -p /usr/local/share/$(hostname).fifo ]
then
echo "$message" >/usr/local/share/$(hostname).fifo
else
sudo /usr/bin/docker compose -f /home/docker/matrix.$(hostname)/docker-compose.yml run -T matrix.$(hostname)--commander -m "$message" -k --room $room --log-level WARNING WARNING
fi
fi
## SIGNAL