From 59c305391f66a06e16b8283ffec238050e98c58a Mon Sep 17 00:00:00 2001 From: Tristan WAGNER Date: Fri, 22 Jul 2022 22:06:33 +0000 Subject: [PATCH] pass morty key as env variable --- utils/templates/lib/systemd/system/morty.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/templates/lib/systemd/system/morty.service b/utils/templates/lib/systemd/system/morty.service index 25b676b51..0435f4eb7 100644 --- a/utils/templates/lib/systemd/system/morty.service +++ b/utils/templates/lib/systemd/system/morty.service @@ -10,10 +10,10 @@ Type=simple User=${SERVICE_USER} Group=${SERVICE_GROUP} WorkingDirectory=${SERVICE_HOME} -ExecStart=${SERVICE_HOME}/go-apps/bin/morty -key '${MORTY_KEY}' -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT} +ExecStart=${SERVICE_HOME}/go-apps/bin/morty -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT} Restart=always -Environment=USER=${SERVICE_USER} HOME=${SERVICE_HOME} DEBUG=${SERVICE_ENV_DEBUG} +Environment=USER=${SERVICE_USER} HOME=${SERVICE_HOME} DEBUG=${SERVICE_ENV_DEBUG} MORTY_KEY=${MORTY_KEY} # Some distributions may not support these hardening directives. If you cannot # start the service due to an unknown option, comment out the ones not supported