Projet

Général

Profil

Révision 20f29eb0

Ajouté par Julien Enselme il y a environ 9 ans

Unlog: update conf to use the proper SMTP server.

Install unlog in a venv because of new dependancies.

Close #533

Voir les différences:

.aliases
1 1
alias ll='ls -al'
2 2
alias lll='ls -alL'
3 3
alias nano='nano -w'
4
alias unlog='python3 /home/assos/unlog/unlog/main.py'
.functions
1
my-unlog() {
2
    . /home/assos/unlog/bin/activate
3
    unlog "$@"
4
}
.profile
5 5

  
6 6
####### ALIASES
7 7
. ~/.aliases
8

  
9
###### FUNCTIONS
10
. ~/.functions
.unlog
3 3
error pattern = (error|warning)
4 4
mail to = assos+log@centrale-marseille.fr
5 5
mail from = assos@centrale-marseille.fr
6
mail server = smtp.ec-m.fr
6 7
start group pattern = #### (?P<command>.+) - (?P<date>[0-9]{2}-[0-9]{2}-[0-9]{2})
7 8
end group pattern = #### END
bin/log-report.sh
1 1
#!/bin/sh
2 2
. /home/assos/bin/scripts-config.sh
3
. /home/assos/.functions
3 4

  
4 5
current_day=$(date "+%Y-%m-%d")
5 6
log_file="${d7_dir_log}/${current_day}.log"
6 7

  
7
unlog "${log_file}" --config /home/assos/.unlog  --mail-subject "Unlog: ${current_day}"
8
my-unlog "${log_file}" --config /home/assos/.unlog  --mail-subject "Unlog: ${current_day}"

Formats disponibles : Unified diff