From 61e5a221eeeaba95cf60e572b459c299c4e972d0 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Mon, 27 Feb 2017 09:46:33 +0300 Subject: [PATCH] create shepherd dir on herd init --- routes/shepherd.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/routes/shepherd.js b/routes/shepherd.js index b67255f..1fe83ae 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -719,6 +719,18 @@ function herder(flock, data) { }) }); + // ADD SHEPHERD FOLDER + mkdirp(iguanaDir + '/shepherd', function(err) { + if (err) + console.error(err); + else + fs.readdir(iguanaDir, (err, files) => { + files.forEach(file => { + //console.log(file); + }); + }) + }); + // COPY CONFS DIR WITH PEERS FILE TO IGUANA DIR, AND KEEP IT IN SYNC fs.copy(iguanaConfsDirSrc, iguanaConfsDir, function (err) { if (err)