Files
ProxmoxVE/ct/rustdeskserver.sh
T

64 lines
2.1 KiB
Bash
Raw Normal View History

2025-02-13 11:57:22 +01:00
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
2025-02-13 11:57:22 +01:00
# Author: Slaviša Arežina (tremor021)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/rustdesk/rustdesk-server
APP="RustDesk Server"
2025-10-08 08:30:22 +02:00
var_tags="${var_tags:-remote-desktop}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}"
var_os="${var_os:-debian}"
2025-10-15 22:58:08 +02:00
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}"
var_unprivileged="${var_unprivileged:-1}"
2025-02-13 11:57:22 +01:00
header_info "$APP"
variables
color
catch_errors
function update_script() {
2025-05-19 18:52:54 +02:00
header_info
check_container_storage
check_container_resources
2025-02-13 11:57:22 +01:00
2025-05-19 18:52:54 +02:00
if [[ ! -x /usr/bin/hbbr ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "rustdesk-hbbs" "lejianwen/rustdesk-server"; then
msg_info "Stopping Service"
2025-05-19 18:52:54 +02:00
systemctl stop rustdesk-hbbr
systemctl stop rustdesk-hbbs
2025-05-21 08:02:03 +02:00
if [[ -f /lib/systemd/system/rustdesk-api.service ]]; then
systemctl stop rustdesk-api
fi
msg_info "Stopped Service"
2025-02-13 11:57:22 +01:00
2026-03-06 21:06:45 +01:00
fetch_and_deploy_gh_release "rustdesk-hbbr" "lejianwen/rustdesk-server" "binary" "latest" "/opt/rustdesk" "rustdesk-server-hbbr*amd64.deb"
fetch_and_deploy_gh_release "rustdesk-hbbs" "lejianwen/rustdesk-server" "binary" "latest" "/opt/rustdesk" "rustdesk-server-hbbs*amd64.deb"
fetch_and_deploy_gh_release "rustdesk-utils" "lejianwen/rustdesk-server" "binary" "latest" "/opt/rustdesk" "rustdesk-server-utils*amd64.deb"
2025-08-20 13:59:32 +02:00
fetch_and_deploy_gh_release "rustdesk-api" "lejianwen/rustdesk-api" "binary" "latest" "/opt/rustdesk" "rustdesk-api-server*amd64.deb"
2025-02-13 11:57:22 +01:00
2025-05-19 18:52:54 +02:00
msg_info "Starting services"
systemctl start -q rustdesk-*
2025-05-19 18:52:54 +02:00
msg_ok "Services started"
2025-08-20 13:59:32 +02:00
msg_ok "Updated successfully!"
2025-05-19 18:52:54 +02:00
fi
exit
2025-02-13 11:57:22 +01:00
}
start
build_container
description
2026-01-06 22:57:40 +01:00
msg_ok "Completed successfully!\n"
2025-02-13 11:57:22 +01:00
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}${IP}:21114${CL}"