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.
 
 
 
 

29 lines
629 B

#!/bin/bash
set -e
python3 <<'PY'
from pathlib import Path
import re
p = Path("app.py")
text = p.read_text()
pattern = re.compile(
r"\n\s*# === KILL DEAD PENDING PAYMENT \(no txid \+ expired lock\) ===.*?"
r'print\("\[dead pending cleanup error\]", e\)\n',
re.DOTALL
)
new_text, count = pattern.subn("\n", text, count=1)
if count == 0:
raise SystemExit("FAILED: broken dead-pending block not found")
p.write_text(new_text)
print("OK: removed broken dead-pending block")
PY
python3 -m py_compile app.py
echo "PY_COMPILE_OK"
sudo systemctl restart otb_billing
sudo systemctl status otb_billing --no-pager -l