This commit introduces a full uninstall script to completely remove the RustDesk server components installed via the install.sh script.
The script performs the following actions:
- Stops and disables the systemd services:
- rustdesksignal.service (hbbs)
- rustdeskrelay.service (hbbr)
- gohttpserver.service (optional HTTP installer service)
- Removes the corresponding service unit files from /etc/systemd/system/
- Deletes all related directories and binaries:
- /opt/rustdesk/
- /var/log/rustdesk/
- /opt/gohttp/ (if present)
- /var/log/gohttp/ (if present)
It ensures a clean environment for a fresh installation or a complete removal of RustDesk from the host.
Note: Any NAT/firewall rules are not automatically removed and must be manually cleaned up.