rename http-fstree => json-to-fstree
it works for file urls as well, not just http
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
{
|
||||
liminix, lib, http-fstree, serviceFns
|
||||
liminix, lib, json-to-fstree, serviceFns
|
||||
}:
|
||||
{ name, url, interval } :
|
||||
let
|
||||
inherit (liminix.services) oneshot longrun;
|
||||
in longrun {
|
||||
inherit name;
|
||||
buildInputs = [ http-fstree ];
|
||||
buildInputs = [ json-to-fstree ];
|
||||
run = ''
|
||||
. ${serviceFns}
|
||||
( in_outputs ${name}
|
||||
while : ; do
|
||||
${http-fstree}/bin/http-fstree ${url} .
|
||||
${json-to-fstree}/bin/json-to-fstree ${url} .
|
||||
sleep ${builtins.toString (interval * 60)}
|
||||
done
|
||||
)
|
||||
|
Reference in New Issue
Block a user