Take use_antietcd setting from /etc/vitastor/vitastor.conf too
This commit is contained in:
@@ -22,6 +22,11 @@ class Mon
|
|||||||
{
|
{
|
||||||
static async run_forever(config)
|
static async run_forever(config)
|
||||||
{
|
{
|
||||||
|
if (fs.existsSync(config.config_path||'/etc/vitastor/vitastor.conf'))
|
||||||
|
{
|
||||||
|
const fileConfig = JSON.parse(fs.readFileSync(config.config_path||'/etc/vitastor/vitastor.conf', { encoding: 'utf-8' }));
|
||||||
|
config = { ...fileConfig, config };
|
||||||
|
}
|
||||||
let antietcd = await AntiEtcdAdapter.start_antietcd(config);
|
let antietcd = await AntiEtcdAdapter.start_antietcd(config);
|
||||||
let mon;
|
let mon;
|
||||||
const run = () =>
|
const run = () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user