From 9160345125dff61799a5c84318ea2077f7f9f73b Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 8 Nov 2024 12:32:14 +0100 Subject: [PATCH] setup and apxtri.js for setup --- apxtri/apxtri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index c46b289..f04205f 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -100,7 +100,6 @@ apxtri.setuptribe = async (tribe, conf) => { } catch (err) { console.log("Your town folder must be something townid-nation"); } - inittribe.sudoUser = process.env.USER; } else { console.log(`a new tribe called ${tribe} was detected`); inittribe = { @@ -113,6 +112,7 @@ apxtri.setuptribe = async (tribe, conf) => { activelog: [], }; } + inittribe.sudoUser = process.env.USER; //check nation exist and town does not exist if ( !fs.existsSync("../adminapi/objects/nations/idx/lst_nations.json") ||