suppression de adminapi/www/adminapx/conf/setup_xx.json
This commit is contained in:
parent
9294ff7dba
commit
41dbd92e4a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/nationchains
|
/nationchains
|
||||||
/adminapi/www/nginx_adminapx.conf
|
/adminapi/www/nginx_adminapx.conf
|
||||||
|
/adminapi/www/adminapx/conf/setup_xx.json
|
||||||
/yarn*
|
/yarn*
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"nationId":"ants","townId":"devfarm","dns":["devfarm-ants"],"comment":"Auto generate setup from apxtrib after node apxtrib nationId:value townId:value dns:domaine_to_access"}
|
|
@ -181,9 +181,14 @@ if (
|
|||||||
setconf(param);
|
setconf(param);
|
||||||
}
|
}
|
||||||
// From git setup-xx is set to nationId:ant townId:farmdev (keyword for dev)
|
// From git setup-xx is set to nationId:ant townId:farmdev (keyword for dev)
|
||||||
const infotown = fs.readJsonSync(
|
let infotown = {nationId:"ants",townId:"devfarm",dns:["devfarm-ants"],comment:"Auto generate setup from apxtrib after node apxtrib nationId:value townId:value dns:domaine_to_access"}
|
||||||
|
if (fs.existsSync(`${__dirname}/adminapi/www/adminapx/conf/setup_xx.json`)){
|
||||||
|
infotown = fs.readJsonSync(
|
||||||
`${__dirname}/adminapi/www/adminapx/conf/setup_xx.json`
|
`${__dirname}/adminapi/www/adminapx/conf/setup_xx.json`
|
||||||
);
|
);
|
||||||
|
}else{
|
||||||
|
fs.outputJsonSync(`${__dirname}/adminapi/www/adminapx/conf/setup_xx.json`,infotown);
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!fs.existsSync(
|
!fs.existsSync(
|
||||||
|
Loading…
Reference in New Issue
Block a user