Make bash script for weekly reports #545

This commit is contained in:
Kendrick Chan 2021-03-12 20:55:02 +08:00
parent d84c1c42f1
commit e65f6ff5bf
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1 @@

View file

@ -1,3 +1,7 @@
#!/bin/sh
/var/www/resq/bin/console report:customer_source $1 $2 /tmp/customer_source_report_$1$2.csv
MONTH=`date +"%m"`
YEAR=`date +"%Y"`
FILE_DATE=`date +"%Y%m%d"`
FILE="/var/www/resq/public/cust_reports/cust_report_$FILE_DATE.csv"
/var/www/resq/bin/console report:customer_source $YEAR $MONTH $FILE