mofications to rotation files

parent eebed528
......@@ -5,7 +5,7 @@
mail amontejo@ujaen.es
compress
create 700 ubuntu ubuntu
postrotate
prerotate
/home/ubuntu/pictogram/sails/cron/report.sh
endscript
}
......@@ -8,7 +8,7 @@ STU_LOGIN_VALIDS=`egrep "\/stu\/login" access.json | grep "'status': 200" | wc -
SHOW_GRIDS=`egrep "/stu/[0-9]+/grids" access.json | wc -l`
STUDENTS_ACCESSED=`egrep "/stu/[0-9]+/grids" access.json | sed "s/.*\/stu\/\([0-9]\+\)\/.*/\1/g"|uniq |wc -l`
mail amontejo@ujaen.es <<END
sendmail amontejo@ujaen.es <<END
Subject: Informe de Pictogram sobre $HOSTNAME
Nº de intentos de login de supervisor: $SUP_LOGIN_ATTEMPTS
Nº de logins válidos de supervisor: $SUP_LOGIN_VALIDS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment