From 1fb41a87efff1348df1955d82bced4d08df2af16 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 31 Jul 2024 04:37:30 +0100 Subject: [PATCH] chore: instruct users to use `systemctl edit` (#6098) Edit to unit files are likely to be overwritten by upgrades to it. To prevent users from losing their edits, redirect them to use `systemd`'s `edit` functionality instead. Signed-off-by: Thomas Eizinger --- scripts/gateway-systemd-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gateway-systemd-install.sh b/scripts/gateway-systemd-install.sh index 0daf088c2..73825524f 100755 --- a/scripts/gateway-systemd-install.sh +++ b/scripts/gateway-systemd-install.sh @@ -35,6 +35,9 @@ After=network.target Documentation=https://www.firezone.dev/kb [Service] + +# DO NOT EDIT ANY OF THE BELOW BY HAND. USE `systemctl edit firezone-gateway` INSTEAD TO CUSTOMIZE. + Type=simple Environment="FIREZONE_NAME=$FIREZONE_NAME" Environment="FIREZONE_ID=$FIREZONE_ID"