/scripts/alcasar-activity_report.sh |
---|
660,7 → 660,6 |
/usr/bin/wkhtmltopdf $HTML_REPORT $(echo $HTML_REPORT | cut -d'.' -f1).pdf |
chown apache:apache $(echo $HTML_REPORT | cut -d'.' -f1).pdf |
chmod 644 $(echo $HTML_REPORT | cut -d'.' -f1).pdf |
mv $HTML_REPORT /var/Save/activity_report/ |
mv $(echo $HTML_REPORT | cut -d'.' -f1).pdf /var/Save/activity_report/ |
#compress every logs, if they exist |
676,8 → 675,9 |
fi |
#remove our files |
rm $TMP_BL |
rm $TMP_BL_WEEK |
rm $TMP_BL_WEEK_CAT |
rm $TMP_STATS |
rm $TMP_STATS_2 |
rm -f $TMP_BL |
rm -f $TMP_BL_WEEK |
rm -f $TMP_BL_WEEK_CAT |
rm -f $TMP_STATS |
rm -f $TMP_STATS_2 |
rm -f $HTML_REPORT |