Privacy Policy page + Chat API key fix

- /privacy page for Google Play (GDPR compliant)
- Fixed Anthropic API key mismatch in .env
- Chat returns AI responses again

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 22:16:02 +00:00
parent 79f7e18c8c
commit 3f04637550
5 changed files with 61 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/bash
cd /opt/task-team || exit 1
BACKUP_DIR="/opt/task-team/backups"
DATE=$(date +%Y%m%d_%H%M)
PGDUMP="/usr/lib/postgresql/18/bin/pg_dump"
@@ -10,13 +11,13 @@ PGPASSWORD="TaskTeam2026!" $PGDUMP -h 10.10.10.10 -U taskteam -d taskteam -F c -
if [ $? -eq 0 ]; then
# Compress
gzip -f "$BACKUP_DIR/taskteam_$DATE.dump" 2>/dev/null
echo "$(date '+%Y-%m-%d %H:%M:%S') OK: taskteam_$DATE.dump.gz"
echo "$(date "+%Y-%m-%d %H:%M:%S") OK: taskteam_$DATE.dump.gz"
else
echo "$(date '+%Y-%m-%d %H:%M:%S') FAIL: pg_dump exited with error"
echo "$(date "+%Y-%m-%d %H:%M:%S") FAIL: pg_dump exited with error"
fi
# Keep last 7 daily backups
find $BACKUP_DIR -name "*.dump.gz" -mtime +7 -delete
find $BACKUP_DIR -name "*.dump" -mtime +7 -delete
# Keep last 14 daily backups
find $BACKUP_DIR -name "*.dump.gz" -mtime +14 -delete
find $BACKUP_DIR -name "*.dump" -mtime +14 -delete
ls -lh $BACKUP_DIR/ | tail -5