prometheus/exporters/tor: make CPython happy by defining $HOME

This commit is contained in:
Pierre Bourdon 2018-12-05 04:24:20 +01:00 committed by Robin Gloster
parent caaaaa7fbb
commit 199b4c4743

View File

@ -36,5 +36,10 @@ in
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};
# CPython requires a process to either have $HOME defined or run as a UID
# defined in /etc/passwd. The latter is false with DynamicUser, so define a
# dummy $HOME. https://bugs.python.org/issue10496
environment = { HOME = "/var/empty"; };
};
}