Skip to content

Commit

Permalink
rustdesk-server: override default HOME path
Browse files Browse the repository at this point in the history
hbbs will also write configuration to $HOME/.config/rustdesk.

Fixes: 9ccc290 ("rustdesk-server: run as unprivileged user")
Reported-by: Yun Wang <[email protected]>
Signed-off-by: Tianling Shen <[email protected]>
(cherry picked from commit c77c6a7)
  • Loading branch information
1715173329 committed Feb 11, 2025
1 parent 576bd12 commit f530d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/rustdesk-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=rustdesk-server
PKG_VERSION:=1.1.14
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/rustdesk/rustdesk-server.git
Expand Down
2 changes: 2 additions & 0 deletions net/rustdesk-server/files/rustdesk-server.init
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ start_service() {
procd_open_instance "hbbr"
procd_set_param command sh -c "cd $WORKDIR && /usr/bin/hbbr -p ${hbbr_port}"
procd_set_param respawn
procd_set_param env HOME="$WORKDIR"
procd_set_param user rustdesk-server
procd_set_param group rustdesk-server

Expand Down Expand Up @@ -61,6 +62,7 @@ start_service() {
procd_open_instance "hbbs"
procd_set_param command sh -c "cd $WORKDIR && /usr/bin/hbbs -p ${hbbs_port}"
procd_set_param respawn
procd_set_param env HOME="$WORKDIR"
procd_set_param user rustdesk-server
procd_set_param group rustdesk-server

Expand Down

0 comments on commit f530d94

Please sign in to comment.