Subversion Repositories ALCASAR

Rev

Rev 2139 | Rev 2189 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2139 Rev 2141
Line 658... Line 658...
658
 
658
 
659
#convert html document to PDF
659
#convert html document to PDF
660
/usr/bin/wkhtmltopdf $HTML_REPORT $(echo $HTML_REPORT | cut -d'.' -f1).pdf
660
/usr/bin/wkhtmltopdf $HTML_REPORT $(echo $HTML_REPORT | cut -d'.' -f1).pdf
661
chown apache:apache $(echo $HTML_REPORT | cut -d'.' -f1).pdf
661
chown apache:apache $(echo $HTML_REPORT | cut -d'.' -f1).pdf
662
chmod 644 $(echo $HTML_REPORT | cut -d'.' -f1).pdf
662
chmod 644 $(echo $HTML_REPORT | cut -d'.' -f1).pdf
663
mv $HTML_REPORT /var/Save/activity_report/
-
 
664
mv $(echo $HTML_REPORT | cut -d'.' -f1).pdf /var/Save/activity_report/
663
mv $(echo $HTML_REPORT | cut -d'.' -f1).pdf /var/Save/activity_report/
665
 
664
 
666
#compress every logs, if they exist
665
#compress every logs, if they exist
667
if [ $(ls -1 /var/log/havp/access.log.* 2>/dev/null | wc -l) -ge 1 ]
666
if [ $(ls -1 /var/log/havp/access.log.* 2>/dev/null | wc -l) -ge 1 ]
668
then
667
then
Line 674... Line 673...
674
then
673
then
675
	gzip /var/log/dnsmasq/dnsmasq-blacklist.log.*
674
	gzip /var/log/dnsmasq/dnsmasq-blacklist.log.*
676
fi
675
fi
677
 
676
 
678
#remove our files
677
#remove our files
679
rm $TMP_BL
678
rm -f $TMP_BL
680
rm $TMP_BL_WEEK
679
rm -f $TMP_BL_WEEK
681
rm $TMP_BL_WEEK_CAT
680
rm -f $TMP_BL_WEEK_CAT
682
rm $TMP_STATS
681
rm -f $TMP_STATS
683
rm $TMP_STATS_2
682
rm -f $TMP_STATS_2
-
 
683
rm -f $HTML_REPORT