10 lines
558 B
Bash
10 lines
558 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -ueo pipefail
|
||
|
|
||
|
PERIOD=$(date --date='-1 month' +%m/%Y)
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing prepare-invoice-records $PERIOD
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-items $PERIOD
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-coupons $PERIOD
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-credits $PERIOD
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoices $PERIOD
|
||
|
satellite --config-dir $SATELLITE_0_DIR billing finalize-invoices $PERIOD
|