MT#5879 Inital config and cron files for invoice generation script

ipeshinskaya/InvoiceTemplate6
Irka 11 years ago
parent 52cc8532a3
commit 81280896d6

@ -4,4 +4,6 @@ logging.conf etc/ngcp-panel/
ngcp_panel.psgi usr/share/ngcp-panel/
script/* usr/share/ngcp-panel/script
script/ngcp_panel_fastcgi.pl usr/share/ngcp-panel/
etc/invoice-gen.conf etc/ngcp-invoice-gen/
etc/invoice-gen.cron etc/cron.d/ngcp-invoice-gen
share/* usr/share/ngcp-panel/

@ -0,0 +1,15 @@
[% TAGS [- -] %]
DBHOST=[% database.dbhost %]
DBPORT=[% database.dbport %]
DBDB=[% invoicegen.dbname %]
DBUSER=[% invoicegen.dbuser %]
DBPASS=[% invoicegen.dbpassword %]
RESELLER_ID=[% invoicegen.reseller_id %]
CLIENT_CONTRACT_ID=[% invoicegen.customer_contract_id %]
#STIME=[% invoicegen.stime %]
#ETIME=[% invoicegen.etime %]
SEND=[% invoicegen.send %]
RESEND=[% invoicegen.resend %]
REGENERATE=[% invoicegen.regenerate %]
ALLOW_TERMINATED=[% invoicegen.allow_terminated %]

@ -0,0 +1,8 @@
[% TAGS [- -] %]
[- IF PRO -]
5 3 1 * * root if ! /usr/sbin/ngcp-check_active -q; then perl /usr/share/ngcp-panel-tools/generate_invoice.pl --prevmonth 2>&1 >/dev/null; fi
5 3 2 * * root if ! /usr/sbin/ngcp-check_active -q; then perl /usr/share/ngcp-panel-tools/generate_invoice.pl --prevmonth --sendonly 2>&1 >/dev/null; fi
[- ELSE -]
5 3 1 * * root perl /usr/share/ngcp-panel-tools/generate_invoice.pl --prevmonth 2>&1 >/dev/null
5 3 2 * * root perl /usr/share/ngcp-panel-tools/generate_invoice.pl --prevmonth --sendonly 2>&1 >/dev/null
[- END -]
Loading…
Cancel
Save