This commit is contained in:
olli 2024-08-18 17:12:51 +02:00
parent 28e9f2c3df
commit fbaf5caba7

View File

@ -779,8 +779,8 @@
then
matrix_message=$(echo "${subj}<br>${orig_message}")
matrix_target="/usr/local/share/$(hostname).fifo"
[ -n "$togroup" ] && [ -p "/usr/local/share/$(hostname)-${togroup}.fifo" ] && target="/usr/local/share/$(hostname)-${togroup}.fifo"
echo "$matrix_message" >"$target"
[ -n "$togroup" ] && [ -p "/usr/local/share/$(hostname)-${togroup}.fifo" ] && matrix_target="/usr/local/share/$(hostname)-${togroup}.fifo"
echo "$matrix_message" >"$matrix_target"
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