Merge branch '545-script-and-crontab-for-customer-source-report' into 'master'
Resolve "Script and crontab for customer source report" Closes #545 See merge request jankstudio/resq!638
This commit is contained in:
commit
d7485e0058
2 changed files with 8 additions and 0 deletions
1
public/cust_reports/.gitkeep
Normal file
1
public/cust_reports/.gitkeep
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
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
|
||||||
Loading…
Reference in a new issue