add rustdesk role

This commit is contained in:
Sergey Malyuk
2025-12-17 11:20:05 +03:00
parent 87cf29448b
commit 7fd2c6d60a
25 changed files with 458 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# shellcheck disable=SC2155
set -eu -o pipefail
readonly RUSTDESK_SERVER_IP="$(curl -s ifconfig.me)"
readonly RUSTDESK_SERVER_KEY="$(cat /opt/rustdesk-server/lib/id_ed25519.pub)"
cp /opt/rustdesk-server/lib/rustdesk-client.exe \
/opt/rustdesk-server/lib/rustdesk-host="$RUSTDESK_SERVER_IP",key="$RUSTDESK_SERVER_KEY".exe