Projet

Général

Profil

Paste
Télécharger (336 octets) Statistiques
| Branche: | Révision:

root / bin / log-report.sh @ fc3d89c3

1
#!/bin/sh
2
. /home/assos/bin/scripts-config.sh
3
. /home/assos/.functions
4

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

    
8
# We use the function my-unlog to activate the virtualenv and then correctly
9
# use unlog in it.
10
my-unlog "${log_file}" --config /home/assos/.unlog  --mail-subject "Unlog: ${current_day}"