summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-07 22:57:53 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-07 22:57:53 +0200
commitdc8ecfab18db541c629c85ba0aca9d4f280c1bfb (patch)
treef463fba8f7e642120b81a87ca2c60a707d6d83f7
parentenable service (diff)
downloadRory-Open-Architecture-dc8ecfab18db541c629c85ba0aca9d4f280c1bfb.tar.xz
enable service
-rwxr-xr-xhost/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
index a258d4d..d0df4e8 100755
--- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
+++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix
@@ -24,7 +24,8 @@
       reg_token=`cat /dev/urandom | tr -dc a-zA-Z0-9 | head -c 256`
       mkdir -p /run/systemd/system/conduit.service.d
       echo $reg_token > /run/conduit-registration-token
-      echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$reg_token\" > /run/systemd/system/conduit.service.d/override.conf
+      echo "[Service]" > /run/systemd/system/conduit.service.d/override.conf
+      echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$reg_token\" >> /run/systemd/system/conduit.service.d/override.conf
       systemctl daemon-reload
       systemctl try-restart conduit.service'';
     serviceConfig = {