diff options
author | Rory& <root@rory.gay> | 2024-02-26 16:23:27 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-02-26 16:23:27 +0100 |
commit | d514a21c3a1deacd9c31886951e5fef67c39f345 (patch) | |
tree | 31dfc6be517d822e85ccef23e9ee461abd2257ed | |
parent | Start MatrixMediaGate with system. (diff) | |
download | Rory-Open-Architecture-d514a21c3a1deacd9c31886951e5fef67c39f345.tar.xz |
Use BusyBox for copying file, use relative paths.
-rwxr-xr-x | host/Rory-nginx/services/matrix/matrix-media-gate.nix | 4 |
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; |