#!/bin/bash
# RustDesk Configuration Script for RCS Andover Help Desk
# Run this AFTER installing RustDesk

echo "========================================"
echo "RCS Andover RustDesk Configuration"
echo "========================================"
echo ""
echo "This will configure RustDesk to use:"
echo "Server: help.rcsandover.com"
echo ""

# Create config directory if it doesn't exist
mkdir -p ~/.config/rustdesk

# Create or update the config file
cat > ~/.config/rustdesk/RustDesk.toml << 'EOF'
[options]
custom-rendezvous-server = "help.rcsandover.com"
relay-server = "help.rcsandover.com"
key = "pcY5GAVL3TkU9yXdPyH2rZ59GCk8XqRHWvnKyvZnOec="
api-server = "https://help.rcsandover.com"
EOF

echo ""
echo "========================================"
echo "Configuration complete!"
echo "========================================"
echo ""
echo "IMPORTANT: Please restart RustDesk if it's already running."
echo ""
echo "Your RustDesk ID will appear in the main window."
echo "Share this ID with support to receive assistance."
echo ""
