Revert "Do not run initialize script as root, because it is not portable"

This reverts commit 69b9623570.
This commit is contained in:
Sander van der Burg 2021-02-16 19:33:03 +01:00 committed by Sander van der Burg
parent 6918e6d638
commit aa3900919c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ let
ExecStart = if foregroundProcess != null then "${foregroundProcess} ${stdenv.lib.escapeShellArgs foregroundProcessArgs}" else "${daemon} ${stdenv.lib.escapeShellArgs daemonArgs}";
Type = if foregroundProcess != null then "simple" else "forking";
} // stdenv.lib.optionalAttrs (initialize != "") {
ExecStartPre = generatePreStartScript {
ExecStartPre = stdenv.lib.optionalString (user != null) "+" + generatePreStartScript {
inherit name initialize;
};
} // stdenv.lib.optionalAttrs (directory != null) {