billing frontend for mariadb. setup as otb_billing for outsidethebox.top accounting. also involved with outsidethedb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
540 B

#!/bin/bash
set -e
cd /home/def/otb_billing/backend || exit 1
GOOD_BAK="app.py.retry-email.20260327-023404.bak"
echo "===== restoring known-good app.py ====="
cp "$GOOD_BAK" app.py
echo
echo "===== compile check ====="
python3 -m py_compile app.py
echo "PY_COMPILE_OK"
echo
echo "===== restart service ====="
sudo systemctl restart otb_billing
echo
echo "===== service status ====="
sudo systemctl status otb_billing --no-pager -l
echo
echo "===== last 20 journal lines ====="
sudo journalctl -u otb_billing.service -n 20 --no-pager