summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xhost/Rory-nginx/services/matrix/matrix-media-gate.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/Rory-nginx/services/matrix/matrix-media-gate.nix b/host/Rory-nginx/services/matrix/matrix-media-gate.nix
index 591e550..8c92a4c 100755
--- a/host/Rory-nginx/services/matrix/matrix-media-gate.nix
+++ b/host/Rory-nginx/services/matrix/matrix-media-gate.nix
@@ -6,7 +6,7 @@
       wantedBy = [ "multi-user.target" ];
       serviceConfig = {
         ExecStart = "${MatrixMediaGate}/bin/MatrixMediaGate";
-        ExecStartPre = "cp ${./appsettings.matrix-rory-gay.json} /etc/matrix-media-gate/appsettings.matrix-rory-gay.json";
+        ExecStartPre = "${pkgs.busybox}/bin/cp ${./appsettings.matrix-rory-gay.json} ./appsettings.matrix-rory-gay.json";
         Restart = "always";
         RestartSec = "5";
         DynamicUser = true;
@@ -21,7 +21,7 @@
       wantedBy = [ "multi-user.target" ];
       serviceConfig = {
         ExecStart = "${MatrixMediaGate}/bin/MatrixMediaGate";
-        ExecStartPre = "cp ${./appsettings.conduit-rory-gay.json} /etc/matrix-media-gate/appsettings.conduit-rory-gay.json";
+        ExecStartPre = "cp ${./appsettings.conduit-rory-gay.json} ./appsettings.conduit-rory-gay.json";
         Restart = "always";
         RestartSec = "5";
         DynamicUser = true;