From 86eb7ea806962947ecf3340f331a6bec081813bf Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Nov 2025 04:26:31 +0000 Subject: [PATCH] Fix: Save user-input RDP config to API instead of using hardcoded values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: - All-in-one installer collected RDP connection info from user - But API was using hardcoded DEFAULT_CONFIG values - User's input was ignored by the API Solution: - Save user's RDP configuration to /var/lib/rdp-toggle/config.json - API loads this config instead of hardcoded defaults - Config includes: rdp_server, rdp_username, rdp_password, local_user Now the API will use the actual RDP settings the user entered during installation. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- RDP/proxmox-auto-rdp-setup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RDP/proxmox-auto-rdp-setup.sh b/RDP/proxmox-auto-rdp-setup.sh index ef2bce4..faff7f1 100755 --- a/RDP/proxmox-auto-rdp-setup.sh +++ b/RDP/proxmox-auto-rdp-setup.sh @@ -520,6 +520,18 @@ RestartSec=5 [Install] WantedBy=multi-user.target +EOF + + # RDP 섀정을 API에 μ €μž₯ + msg_info "RDP μ„€μ • μ €μž₯ 쀑..." + mkdir -p /var/lib/rdp-toggle + cat > /var/lib/rdp-toggle/config.json << EOF +{ + "rdp_server": "$RDP_SERVER", + "rdp_username": "$RDP_USERNAME", + "rdp_password": "$RDP_PASSWORD", + "local_user": "$LOCAL_USER" +} EOF # μ„œλΉ„μŠ€ ν™œμ„±ν™” 및 μ‹œμž‘