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