From a01ebbf61fcdacd2641fee0c89eb07dda8519762 Mon Sep 17 00:00:00 2001 From: philc Date: Sun, 10 Nov 2024 08:52:12 +0100 Subject: [PATCH] fix --- README.md | 4 ++-- apxtri/apxtri.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1a916c7..4affa27 100644 --- a/README.md +++ b/README.md @@ -89,13 +89,13 @@ Until the web interface allow it here are usefull process to: * create an empty tribe call tribename ``` - run . setup.sh tribename newtribe + cd .. && . setup.sh tribename newtribe ``` This will create a new tribe that you can manage in http://admin.tribename.dev.ants (a standard .giitignore is generate ready if you want to version your code in apxtri) * To add a new tribe from an existing tribe host in testwall-ants.ndda.fr, we want set a dev env from git repo named smatchit with data that come from testwall-ants.ndda.fr the last night. To get data you must have the password to access backup. ``` - . setup.sh smatchit https://testwall-ants.ndda.fr https://gitea.ndda.fr/smatchit/smatchit + cd .. && . setup.sh smatchit https://testwall-ants.ndda.fr https://gitea.ndda.fr/smatchit/smatchit ``` If you want to contribute fixing bug, add new features in adminapi please push in your branch and send an email to support@need-data.com. diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index 652ece7..427d5cf 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -20,8 +20,6 @@ apxtri.main = async () => { ); process.exit(0); } - console.log("rrrrrrrrrrrrrrrrrrr") - console.log(path.resolve("../adminapi/objects/tribes/idx/tribes_dns.json")) //Check prerequest data if ( fs.existsSync("../adminapi/objects/tribes/idx/tribes_dns.json") && @@ -41,7 +39,7 @@ apxtri.main = async () => { .forEach(async (t) => { const tribe = path.basename(t); //console.log(tribe); - if (!tribesdns[tribe]) { + if (![".",".."].includes(tribe) && !tribesdns[tribe]) { await apxtri.setuptribe(tribe, conf); } });