fix(gateway): Fallback to get_hostname() for systemd deployments (#3029)

Fixes #3025
This commit is contained in:
Jamil
2024-01-02 11:01:57 -08:00
committed by GitHub
parent 18c3d4e871
commit 2a9d48fd0a
2 changed files with 0 additions and 2 deletions

View File

@@ -321,7 +321,6 @@ defmodule Web.RelayGroups.NewToken do
--preserve-env=FIREZONE_NAME,FIREZONE_ID,FIREZONE_TOKEN,PUBLIC_IP4_ADDR,PUBLIC_IP6_ADDR,RUST_LOG,LOG_FORMAT \\
-u firezone \\
-g firezone \\
FIREZONE_NAME=$(hostname) \\
/usr/local/bin/firezone-relay
TimeoutStartSec=3s
TimeoutStopSec=15s

View File

@@ -287,7 +287,6 @@ defmodule Web.Sites.NewToken do
--preserve-env=FIREZONE_NAME,FIREZONE_ID,FIREZONE_TOKEN,FIREZONE_API_URL,RUST_LOG \\
-u firezone \\
-g firezone \\
FIREZONE_NAME=$(hostname) \\
/usr/local/bin/firezone-gateway
TimeoutStartSec=3s
TimeoutStopSec=15s