setup and apxtri.js for setup

This commit is contained in:
philc 2024-11-08 12:32:14 +01:00
parent ea63e235a5
commit 9160345125

View File

@ -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") ||