Browse Source

Use common hook mechanism for logging and status change announcing

Alois Mahdal 9 years ago
parent
commit
0820809492
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/libexec/saturnin-iam

+ 3
- 1
src/libexec/saturnin-iam View File

@@ -6,6 +6,7 @@ ffoo import inigrep
6 6
 ffoo import pretty
7 7
 ffoo import sync
8 8
 
9
+ffoo import saturnin_common
9 10
 ffoo import saturnin_zleep
10 11
 
11 12
 
@@ -52,7 +53,8 @@ set_status() {
52 53
     # set public status $1 by command in conf file
53 54
     #
54 55
     local what=$1
55
-    inigrep -p iam.saying.like.this.$what | bash
56
+    saturnin_runhook say_$what
57
+    saturnin_runhook log_$what
56 58
 }
57 59
 
58 60