fix oneshot "up" and "down" files
they're supposed to be names of executables, not text of shell scripts
This commit is contained in:
parent
01aa423dad
commit
92e42f1d45
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
, lib
|
||||
, busybox
|
||||
, callPackage
|
||||
, writeAshScript
|
||||
} :let
|
||||
inherit (builtins) concatStringsSep;
|
||||
longrun = {
|
||||
|
@ -37,7 +38,9 @@
|
|||
# store directories?
|
||||
buildInputs = dependencies;
|
||||
shell = "${busybox}/bin/sh";
|
||||
inherit up down;
|
||||
# up and down for oneshots are pathnames not scripts
|
||||
up = writeAshScript "${name}-up" {} up;
|
||||
down = writeAshScript "${name}-down" {} down;
|
||||
dependencies = builtins.map (d: d.name) dependencies;
|
||||
builder = ./builder.sh;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue