mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
services.jenkins.plugins: fix initial case
This commit is contained in:
parent
777d5ee732
commit
cb5cb0bf95
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ in {
|
|||
|
||||
plugins = mkOption {
|
||||
default = null;
|
||||
#type = types.nullOr (types.attrsOf types.package);
|
||||
type = types.nullOr (types.attrsOf types.package);
|
||||
description = ''
|
||||
A set of plugins to activate. Note that this will completely
|
||||
remove and replace any previously installed plugins. If you
|
||||
|
@ -175,7 +175,7 @@ in {
|
|||
(n: v: "cp ${v} ${cfg.home}/plugins/${n}.hpi")
|
||||
cfg.plugins;
|
||||
in ''
|
||||
rm -r ${cfg.home}/plugins
|
||||
rm -r ${cfg.home}/plugins || true
|
||||
mkdir -p ${cfg.home}/plugins
|
||||
${lib.strings.concatStringsSep "\n" pluginCmds}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue