Apply Composer changes: comprehensive API updates, migrations, middleware, and infrastructure improvements
- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
This commit is contained in:
96
scripts/copy-script-to-proxmox-manual.sh
Executable file
96
scripts/copy-script-to-proxmox-manual.sh
Executable file
@@ -0,0 +1,96 @@
|
||||
#!/bin/bash
|
||||
# Manual copy script with diagnostic information
|
||||
# This script provides the exact commands to copy the script manually
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
# Source .env file
|
||||
if [ -f "$PROJECT_ROOT/.env" ]; then
|
||||
set -a
|
||||
source "$PROJECT_ROOT/.env"
|
||||
set +a
|
||||
fi
|
||||
|
||||
# Get password (with fallback)
|
||||
PROXMOX_PASS="${PROXMOX_ROOT_PASS:-L@kers2010}"
|
||||
|
||||
# Get hostnames/IPs
|
||||
PROXMOX_1_HOST="${PROXMOX_1_HOST:-192.168.11.10}"
|
||||
PROXMOX_2_HOST="${PROXMOX_2_HOST:-192.168.11.11}"
|
||||
|
||||
SCRIPT_NAME="complete-vm-100-guest-agent-check.sh"
|
||||
SCRIPT_PATH="$SCRIPT_DIR/$SCRIPT_NAME"
|
||||
|
||||
echo "=========================================="
|
||||
echo "Manual Copy Instructions"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
echo "Script: $SCRIPT_NAME"
|
||||
echo "Source: $SCRIPT_PATH"
|
||||
echo ""
|
||||
|
||||
# Check if script exists
|
||||
if [ ! -f "$SCRIPT_PATH" ]; then
|
||||
echo "❌ Error: Script not found: $SCRIPT_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Copy and paste these commands to copy the script:"
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "For ml110-01 (Site 1):"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
echo "# Copy script to ml110-01"
|
||||
echo "sshpass -p '$PROXMOX_PASS' scp -o StrictHostKeyChecking=no \\"
|
||||
echo " $SCRIPT_PATH \\"
|
||||
echo " root@$PROXMOX_1_HOST:/usr/local/bin/$SCRIPT_NAME"
|
||||
echo ""
|
||||
echo "# Make executable"
|
||||
echo "sshpass -p '$PROXMOX_PASS' ssh -o StrictHostKeyChecking=no root@$PROXMOX_1_HOST \\"
|
||||
echo " 'chmod +x /usr/local/bin/$SCRIPT_NAME'"
|
||||
echo ""
|
||||
echo "# Verify"
|
||||
echo "sshpass -p '$PROXMOX_PASS' ssh -o StrictHostKeyChecking=no root@$PROXMOX_1_HOST \\"
|
||||
echo " '/usr/local/bin/$SCRIPT_NAME'"
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "For r630-01 (Site 2):"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
echo "# Copy script to r630-01"
|
||||
echo "sshpass -p '$PROXMOX_PASS' scp -o StrictHostKeyChecking=no \\"
|
||||
echo " $SCRIPT_PATH \\"
|
||||
echo " root@$PROXMOX_2_HOST:/usr/local/bin/$SCRIPT_NAME"
|
||||
echo ""
|
||||
echo "# Make executable"
|
||||
echo "sshpass -p '$PROXMOX_PASS' ssh -o StrictHostKeyChecking=no root@$PROXMOX_2_HOST \\"
|
||||
echo " 'chmod +x /usr/local/bin/$SCRIPT_NAME'"
|
||||
echo ""
|
||||
echo "# Verify"
|
||||
echo "sshpass -p '$PROXMOX_PASS' ssh -o StrictHostKeyChecking=no root@$PROXMOX_2_HOST \\"
|
||||
echo " '/usr/local/bin/$SCRIPT_NAME'"
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "Alternative: Copy script content directly"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
echo "If SCP doesn't work, you can copy the script content:"
|
||||
echo ""
|
||||
echo "1. Display the script:"
|
||||
echo " cat $SCRIPT_PATH"
|
||||
echo ""
|
||||
echo "2. SSH to the node and create the file:"
|
||||
echo " sshpass -p '$PROXMOX_PASS' ssh -o StrictHostKeyChecking=no root@$PROXMOX_1_HOST"
|
||||
echo ""
|
||||
echo "3. Then on the Proxmox node, create the file:"
|
||||
echo " cat > /usr/local/bin/$SCRIPT_NAME << 'SCRIPT_EOF'"
|
||||
echo " [paste script content here]"
|
||||
echo " SCRIPT_EOF"
|
||||
echo " chmod +x /usr/local/bin/$SCRIPT_NAME"
|
||||
echo ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user