fix: update setup script and coordinator service to use standard /opt/aitbc paths

Setup Script and Service Configuration Update - Complete:
 SETUP SCRIPT UPDATED: Repository cloning logic improved
- setup.sh: Changed to check for existing .git directory instead of removing /opt/aitbc
- setup.sh: Updated repository URL to gitea.bubuit.net
- Reason: Prevents unnecessary re-cloning and uses correct repository source

 COORDINATOR SERVICE UPDATED: Paths standardized to /opt/aitbc
- aitbc-coordinator-api.service
This commit is contained in:
aitbc
2026-03-30 20:32:45 +02:00
parent fd3ba4a62d
commit e7eecacf9b
3 changed files with 81 additions and 8 deletions

View File

@@ -68,15 +68,15 @@ check_prerequisites() {
clone_repo() {
log "Cloning AITBC repository..."
# Remove existing installation if present
if [ -d "/opt/aitbc" ]; then
warning "Removing existing /opt/aitbc"
rm -rf /opt/aitbc
# Check if repository already exists
if [ -d "/opt/aitbc/.git" ]; then
success "AITBC repository already exists, skipping clone"
return 0
fi
# Clone repository
cd /opt
git clone https://github.com/aitbc/aitbc.git aitbc || error "Failed to clone repository"
git clone http://gitea.bubuit.net:3000/oib/aitbc.git aitbc || error "Failed to clone repository"
cd /opt/aitbc
success "Repository cloned successfully"