diff --git a/machines/renge/services/coturn.nix b/machines/renge/services/coturn.nix index 0552a85..5602d6c 100644 --- a/machines/renge/services/coturn.nix +++ b/machines/renge/services/coturn.nix @@ -72,7 +72,8 @@ in systemd.services.coturn = { after = [ "acme-finished-${fqdn}.target" ]; serviceConfig = { - ExecStartPre = lib.singleton "!${pkgs.writeShellScript "coturn-setup-tls" '' + RuntimeDirectory = "turnserver"; + ExecStartPre = lib.singleton "+${pkgs.writeShellScript "coturn-setup-tls" '' cp ${config.security.acme.certs."${fqdn}".directory}/{fullchain,key}.pem /run/turnserver/ chgrp turnserver /run/turnserver/{fullchain,key}.pem ''}";