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:
10
setup.sh
10
setup.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user