From d514a21c3a1deacd9c31886951e5fef67c39f345 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 26 Feb 2024 16:23:27 +0100 Subject: Use BusyBox for copying file, use relative paths. --- host/Rory-nginx/services/matrix/matrix-media-gate.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') 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; -- cgit 1.4.1