Add rustdeck-server
This commit is contained in:
parent
f7730928e4
commit
81f42e2ee2
12 changed files with 58 additions and 2 deletions
10
ressources/rustdesk-server/rustdesk-server-hbbs/usr/bin/hbbs-service
Executable file
10
ressources/rustdesk-server/rustdesk-server-hbbs/usr/bin/hbbs-service
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/env bash
|
||||
/usr/bin/hbbs \
|
||||
$([ "" != "$KEY" ] && echo --key $KEY) \
|
||||
$([ "" != "$RELAY_SERVERS" ] && echo --relay-servers $RELAY_SERVERS) \
|
||||
$([ "" != "$PORT" ] && echo --port $PORT) \
|
||||
$([ "" != "$CONFIG_FILE" ] && echo --config $CONFIG_FILE) \
|
||||
$([ "" != "$SERIAL" ] && echo --serial $SERIAL) \
|
||||
$([ "" != "$SOFTWARE_URL" ] && echo --software-url $SOFTWARE_URL) \
|
||||
$([ "" != "$RENDEZVOUS_SERVER" ] && echo --rendezvous-servers $RENDEZVOUS_SERVER) \
|
||||
$([ "" != "$CONFIG_FILE" ] && echo --config $CONFIG_FILE)
|
|
@ -6,7 +6,8 @@ After=network.target
|
|||
[Service]
|
||||
User=hbbs
|
||||
Group=hbbs
|
||||
ExecStart=/usr/bin/hbbs
|
||||
EnvironmentFile=/etc/default/hbbs
|
||||
ExecStart=/usr/bin/hbbs-service
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectHome=true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue