setup and apxtri.js for setup
This commit is contained in:
parent
ea63e235a5
commit
9160345125
@ -100,7 +100,6 @@ apxtri.setuptribe = async (tribe, conf) => {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("Your town folder must be something townid-nation");
|
console.log("Your town folder must be something townid-nation");
|
||||||
}
|
}
|
||||||
inittribe.sudoUser = process.env.USER;
|
|
||||||
} else {
|
} else {
|
||||||
console.log(`a new tribe called ${tribe} was detected`);
|
console.log(`a new tribe called ${tribe} was detected`);
|
||||||
inittribe = {
|
inittribe = {
|
||||||
@ -113,6 +112,7 @@ apxtri.setuptribe = async (tribe, conf) => {
|
|||||||
activelog: [],
|
activelog: [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
inittribe.sudoUser = process.env.USER;
|
||||||
//check nation exist and town does not exist
|
//check nation exist and town does not exist
|
||||||
if (
|
if (
|
||||||
!fs.existsSync("../adminapi/objects/nations/idx/lst_nations.json") ||
|
!fs.existsSync("../adminapi/objects/nations/idx/lst_nations.json") ||
|
||||||
|
Loading…
Reference in New Issue
Block a user