summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/matrix-media-gate.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-26 16:23:27 +0100
committerRory& <root@rory.gay>2024-02-26 16:23:27 +0100
commitd514a21c3a1deacd9c31886951e5fef67c39f345 (patch)
tree31dfc6be517d822e85ccef23e9ee461abd2257ed /host/Rory-nginx/services/matrix/matrix-media-gate.nix
parentStart MatrixMediaGate with system. (diff)
downloadRory-Open-Architecture-d514a21c3a1deacd9c31886951e5fef67c39f345.tar.xz
Use BusyBox for copying file, use relative paths.
Diffstat (limited to '')
-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;