services/vouch-proxy: escape service names for systemd

This commit is contained in:
Gabriel Arazas 2023-10-17 18:33:02 +08:00
parent e6c4a20b83
commit 8fb9770882
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -63,7 +63,7 @@ let
inherit (instance) settings settingsFile;
settingsFile' = "/var/lib/vouch-proxy/${name}-config.yml";
in
lib.nameValuePair "vouch-proxy-${name}" {
lib.nameValuePair "vouch-proxy-${utils.escapeSystemdPath name}" {
preStart =
if (settings != { } && settingsFile == null)
then ''