docs: update system architecture audit workflow to check FHS-compliant paths

- Remove checks for non-existent /opt/aitbc/production/* paths
- Add checks for actual FHS-compliant paths (/var/lib/aitbc/data, /etc/aitbc, /var/log/aitbc)
- Clarify incorrect vs correct path references in output
This commit is contained in:
aitbc
2026-04-24 11:15:51 +02:00
parent 751b189018
commit 3ca65d054e

View File

@@ -56,29 +56,29 @@ find /opt/aitbc -name "data" -o -name "config" -o -name "logs" 2>/dev/null || ec
# Analyze code for incorrect path references using ripgrep # Analyze code for incorrect path references using ripgrep
echo "=== 2. CODE PATH ANALYSIS ===" echo "=== 2. CODE PATH ANALYSIS ==="
# Find repository data references # Find repository data references (incorrect paths)
echo "Repository Data References:" echo "Repository Data References (incorrect):"
rg -l "/opt/aitbc/data" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository data references" rg -l "/opt/aitbc/data" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository data references"
# Find repository config references # Find repository config references (incorrect paths)
echo "Repository Config References:" echo "Repository Config References (incorrect):"
rg -l "/opt/aitbc/config" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository config references" rg -l "/opt/aitbc/config" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository config references"
# Find repository log references # Find repository log references (incorrect paths)
echo "Repository Log References:" echo "Repository Log References (incorrect):"
rg -l "/opt/aitbc/logs" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository log references" rg -l "/opt/aitbc/logs" --type py /opt/aitbc/ 2>/dev/null || echo "✅ No repository log references"
# Find production data references # Find FHS-compliant data references
echo "Production Data References:" echo "FHS Data References (correct):"
rg -l "/opt/aitbc/production/data" --type py /opt/aitbc/ 2>/dev/null || echo " No production data references" rg -l "/var/lib/aitbc/data" --type py /opt/aitbc/ 2>/dev/null || echo " No FHS data references"
# Find production config references # Find FHS-compliant config references
echo "Production Config References:" echo "FHS Config References (correct):"
rg -l "/opt/aitbc/production/.env" --type py /opt/aitbc/ 2>/dev/null || echo " No production config references" rg -l "/etc/aitbc" --type py /opt/aitbc/ 2>/dev/null || echo " No FHS config references"
# Find production log references # Find FHS-compliant log references
echo "Production Log References:" echo "FHS Log References (correct):"
rg -l "/opt/aitbc/production/logs" --type py /opt/aitbc/ 2>/dev/null || echo " No production log references" rg -l "/var/log/aitbc" --type py /opt/aitbc/ 2>/dev/null || echo " No FHS log references"
``` ```
#### 1.3 SystemD Service Analysis #### 1.3 SystemD Service Analysis