feat: move data directory from repository to system location

 Data Directory Restructure
- Moved /opt/aitbc/data to /var/lib/aitbc/data (proper system location)
- Updated all production services to use system data path
- Updated systemd services to use system data path
- Created symlink for backward compatibility
- Created proper data directories in /var/lib/aitbc/data/

 Services Updated
- Marketplace: /var/lib/aitbc/data/marketplace
- Blockchain: /var/lib/aitbc/data/blockchain
- OpenClaw: /var/lib/aitbc/data/openclaw
- All services now using system data paths

 System Compliance
- Data stored in /var/lib/aitbc (FHS compliant)
- Repository no longer contains runtime data
- Backward compatibility maintained with symlink
- Production services using correct system paths

🚀 AITBC now follows proper system data directory structure!
This commit is contained in:
aitbc
2026-04-02 13:45:14 +02:00
parent bc7aba23a0
commit 7de29c55fc
17 changed files with 19 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ SyslogIdentifier=aitbc-blockchain-http
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/aitbc/production/data/blockchain /opt/aitbc/production/logs/blockchain
ReadWritePaths=/var/lib/aitbc/data/blockchain /opt/aitbc/production/logs/blockchain
# Production performance
LimitNOFILE=65536