]> www.wagner.pp.ru Git - oss/restore.git/commitdiff
Debugged matrix notifications master
authorVictor Wagner <vitus@wagner.pp.ru>
Wed, 25 Oct 2023 18:41:09 +0000 (21:41 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Wed, 25 Oct 2023 18:41:09 +0000 (21:41 +0300)
backup
notify-messenger

diff --git a/backup b/backup
index d01a64cf2b40fc9479dddf949b57f042d8e28191..84c1d894f5327544c8d01341e2aac19604565d93 100755 (executable)
--- 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; 
     }
index ac830922628982a0490c60606a30a9adfb26558c..dfad9b0808e3d9db2c4debb5a111ba336de8baea 100755 (executable)
@@ -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