blob: 408148903169cf957c513aebfbcc1610df5c0d18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# Scripts to send logwatch log to matrix
#set -x
# Ensure the logwatch folder exist
mkdir -p /var/cache/logwatch
# matrix.sh absolute path
MATRIX_SH_PATH=''
# Variable
today=$(date +%d-%m-%Y)
filename=/var/cache/logwatch/$today-logwatch.html
# Execute
/usr/sbin/logwatch --output file --format html --filename $filename
$MATRIX_SH_PATH -html $(cat $filename)
|
ArKa projects. All rights to me, and your next child right arm.