This commit is contained in:
root 2023-06-03 22:40:03 +03:00
parent 43d04f066b
commit 30196e1a78
3 changed files with 6 additions and 6 deletions

View File

@ -12,6 +12,7 @@ install-rustdek:
mkdir -p /var/log/rustdesk mkdir -p /var/log/rustdesk
install-services: install-services:
cp -vf sysconfig-hbbs /etc/default/hbbs
cp -vf hbbr.service /etc/systemd/system/ cp -vf hbbr.service /etc/systemd/system/
cp -vf hbbs.service /etc/systemd/system/ cp -vf hbbs.service /etc/systemd/system/
systemctl daemon-reload systemctl daemon-reload
@ -40,6 +41,7 @@ status:
cleanup-old-settings: cleanup-old-settings:
rm -vf /opt/rustdesk/db_v2.* rm -vf /opt/rustdesk/db_v2.*
rm -vf /etc/default/hbbs
cleanup-old-keys: cleanup-old-keys:
rm -vf /opt/rustdesk/id_ed25519* rm -vf /opt/rustdesk/id_ed25519*

View File

@ -8,11 +8,7 @@ LimitNOFILE=1000000
User=root User=root
Group=root Group=root
Environment="ALWAYS_USE_RELAY=Y" EnvironmentFile=/etc/default/hbbs
Environment="RELAY_SERVERS=rd.ngtech.co.il"
#Environment="KEY_PRIV=private_key_text"
#Environment="KEY_PUB=pub_key_text"
WorkingDirectory=/opt/rustdesk/ WorkingDirectory=/opt/rustdesk/
ExecStart=/opt/rustdesk/hbbs -k _ ExecStart=/opt/rustdesk/hbbs -k _

2
sysconfig-hbbs Normal file
View File

@ -0,0 +1,2 @@
ALWAYS_USE_RELAY=Y
RELAY_SERVERS=rd.ngtech.co.il