From 30196e1a78c0ac0bdecf5df1b2c019db98410dde Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Jun 2023 22:40:03 +0300 Subject: [PATCH] 3 --- Makefile | 4 +++- hbbs.service | 6 +----- sysconfig-hbbs | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 sysconfig-hbbs diff --git a/Makefile b/Makefile index 872d7f3..ecee74a 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ install-rustdek: mkdir -p /var/log/rustdesk install-services: + cp -vf sysconfig-hbbs /etc/default/hbbs cp -vf hbbr.service /etc/systemd/system/ cp -vf hbbs.service /etc/systemd/system/ systemctl daemon-reload @@ -40,7 +41,8 @@ status: cleanup-old-settings: rm -vf /opt/rustdesk/db_v2.* - + rm -vf /etc/default/hbbs + cleanup-old-keys: rm -vf /opt/rustdesk/id_ed25519* diff --git a/hbbs.service b/hbbs.service index 9053c60..da7ca75 100644 --- a/hbbs.service +++ b/hbbs.service @@ -8,11 +8,7 @@ LimitNOFILE=1000000 User=root Group=root -Environment="ALWAYS_USE_RELAY=Y" -Environment="RELAY_SERVERS=rd.ngtech.co.il" - -#Environment="KEY_PRIV=private_key_text" -#Environment="KEY_PUB=pub_key_text" +EnvironmentFile=/etc/default/hbbs WorkingDirectory=/opt/rustdesk/ ExecStart=/opt/rustdesk/hbbs -k _ diff --git a/sysconfig-hbbs b/sysconfig-hbbs new file mode 100644 index 0000000..5b90576 --- /dev/null +++ b/sysconfig-hbbs @@ -0,0 +1,2 @@ +ALWAYS_USE_RELAY=Y +RELAY_SERVERS=rd.ngtech.co.il