#!/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"