From: Victor Wagner Date: Wed, 25 Oct 2023 18:41:09 +0000 (+0300) Subject: Debugged matrix notifications X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;ds=inline;p=oss%2Frestore.git Debugged matrix notifications --- diff --git a/backup b/backup index d01a64c..84c1d89 100755 --- a/backup +++ b/backup @@ -133,7 +133,7 @@ sub notify { my $notifier = "/usr/local/sbin/notify-messenger"; if ( -x $notifier) { $hostname = Sys::Hostname::hostname(); - open my $pipe,"|",$notifier; + open my $pipe,"|$notifier"; print $pipe "$hostname: $msg"; close $pipe; } diff --git a/notify-messenger b/notify-messenger index ac83092..dfad9b0 100755 --- a/notify-messenger +++ b/notify-messenger @@ -3,6 +3,8 @@ # sysadmin about backup status # This version sends message to default matrix room configured in root's # ~/.config/matrix-commander/credentials.json +# and expected that matrix-commander store is in th ${HOME}/store of +# invoking user(root) # You can use XMPP or some proprietary messenger such as telegram # instead -matrix-commander -m - +matrix-commander -m - -s ${HOME}/store