Merge pull request #222080 from Stunkymonkey/nixos-optionalString

This commit is contained in:
Artturi
2023-04-20 16:07:30 +03:00
committed by GitHub
41 changed files with 89 additions and 95 deletions

View File

@@ -242,7 +242,7 @@ in {
jobdir="${jenkinsCfg.home}/$jenkinsjobname"
rm -rf "$jobdir"
done
'' + (if cfg.accessUser != "" then reloadScript else "");
'' + (optionalString (cfg.accessUser != "") reloadScript);
serviceConfig = {
Type = "oneshot";
User = jenkinsCfg.user;