Files
Job-Info/COPY_MODE1_TO_MODE5.sh
T
aewing 42ff3e8f33
Build & Deploy / Test & Lint (push) Has been cancelled
Build & Deploy / Security Scan (push) Has been cancelled
Code Quality / Code Quality Checks (push) Has been cancelled
Code Quality / Dependency Vulnerabilities (push) Has been cancelled
Code Quality / Performance Testing (push) Has been cancelled
Build & Deploy / Build Docker Images (push) Has been cancelled
Build & Deploy / Deploy to Kubernetes (push) Has been cancelled
Add Mode6Test: copy of Mode5Test running on port 3000
2026-01-20 13:43:29 +00:00

34 lines
867 B
Bash

#!/bin/bash
# Copy Mode1Test to Mode5Test and update orchestrator
set -e
echo "Creating Mode5Test as copy of Mode1Test..."
cd /home/admin/Job-Info-Test
# Remove if exists
if [ -d "Mode5Test" ]; then
echo "Mode5Test already exists, removing..."
rm -rf Mode5Test
fi
# Copy entire Mode1Test to Mode5Test
cp -r Mode1Test Mode5Test
echo "✓ Mode5Test created"
# Update orchestrator to support Mode5Test
echo "Updating orchestrator..."
# Update the MODE_FOLDERS mapping in orchestrator.ts
sed -i "s/'Mode3Test': 'Mode3Test',/'Mode3Test': 'Mode3Test',\n 'Mode5Test': 'Mode5Test',/" ModeSwitch/backend/orchestrator.ts
# Set active mode to Mode5Test
echo "Mode5Test" > ModeSwitch/activeMode.txt
echo "✓ Orchestrator updated"
echo "✓ Active mode set to Mode5Test"
echo ""
echo "Done! Mode5Test is ready."
echo "Run 'node orchestrator.ts' to start Mode5Test"