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.
 
 
 
 

59 lines
1.5 KiB

#!/usr/bin/env bash
set -e
VERSION="v1.2.0"
DATE="$(date +%Y-%m-%d)"
STAMP="$(date +%Y%m%d-%H%M%S)"
echo "===== CLEAN TEMP FILES ====="
find . -type f \( -name "*.bak*" -o -name "patch*.sh" \)
read -p "Delete these files? Type YES: " CONFIRM
if [ "$CONFIRM" = "YES" ]; then
find . -type f \( -name "*.bak*" -o -name "patch*.sh" \) -delete
fi
echo "===== SET VERSION ====="
echo "$VERSION" > VERSION
echo "===== UPDATE PROJECT_STATE.md ====="
cat <<STATE >> PROJECT_STATE.md
## $VERSION - $DATE
- Rewrote Service Agreement to platform-based terms
- Removed aggressive "tracking app" language
- Added multi-service structure (OTB Cloud, Follow-Me, future services)
- Clarified data ownership and privacy model
- Improved tone and professionalism of legal agreement
- Terms now align with platform architecture
STATE
echo "===== UPDATE README.md ====="
sed -i "1i\\
## $VERSION ($DATE)\\
- Platform-level Service Agreement\\
- Improved privacy and data messaging\\
- Multi-service legal structure\\
" README.md
echo "===== VERIFY PYTHON ====="
python3 -m py_compile backend/app.py
echo "===== CREATE FULL BACKUP ====="
zip -r "/home/def/backuphere/otb_billing-$VERSION-$STAMP.zip" . >/dev/null
echo "===== GIT ADD ====="
git add .
echo "===== GIT COMMIT ====="
git commit -m "Release $VERSION - Platform service agreement + legal alignment"
echo "===== GIT TAG ====="
git tag "$VERSION"
echo "===== GIT PUSH ====="
git push
git push origin "$VERSION"
echo "===== DONE ====="