|
@ -516,7 +516,7 @@ shepherd.testBins = function(daemonName) { |
|
|
_fs.access(`${iguanaTestDir}/${daemonName}Test.log`, fs.constants.R_OK, function(err) { |
|
|
_fs.access(`${iguanaTestDir}/${daemonName}Test.log`, fs.constants.R_OK, function(err) { |
|
|
if (!err) { |
|
|
if (!err) { |
|
|
try { |
|
|
try { |
|
|
_fs.unlink(`${iguanaTestDir}/${daemonName}Test.log`); |
|
|
_fs.unlinkSync(`${iguanaTestDir}/${daemonName}Test.log`); |
|
|
} catch (e) {} |
|
|
} catch (e) {} |
|
|
} else { |
|
|
} else { |
|
|
shepherd.log(`path ${iguanaTestDir}/${daemonName}Test.log doesnt exist`); |
|
|
shepherd.log(`path ${iguanaTestDir}/${daemonName}Test.log doesnt exist`); |
|
@ -1368,7 +1368,7 @@ shepherd.updateAgama = function() { |
|
|
status: 'done', |
|
|
status: 'done', |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
fs.unlink(`${rootLocation}patch.zip`); |
|
|
fs.unlinkSync(`${rootLocation}patch.zip`); |
|
|
} else { |
|
|
} else { |
|
|
cache.io.emit('patch', { |
|
|
cache.io.emit('patch', { |
|
|
msg: { |
|
|
msg: { |
|
@ -2844,7 +2844,7 @@ function herder(flock, data) { |
|
|
shepherd.writeLog(`error accessing ${kmdDebugLogLocation}`); |
|
|
shepherd.writeLog(`error accessing ${kmdDebugLogLocation}`); |
|
|
} else { |
|
|
} else { |
|
|
try { |
|
|
try { |
|
|
fs.unlink(kmdDebugLogLocation); |
|
|
fs.unlinkSync(kmdDebugLogLocation); |
|
|
shepherd.log(`truncate ${kmdDebugLogLocation}`); |
|
|
shepherd.log(`truncate ${kmdDebugLogLocation}`); |
|
|
shepherd.writeLog(`truncate ${kmdDebugLogLocation}`); |
|
|
shepherd.writeLog(`truncate ${kmdDebugLogLocation}`); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
@ -3309,8 +3309,8 @@ function setConf(flock) { |
|
|
return FixFilePermissions(); |
|
|
return FixFilePermissions(); |
|
|
}) |
|
|
}) |
|
|
.then(RemoveLines) |
|
|
.then(RemoveLines) |
|
|
.then(CheckConf) |
|
|
.then(CheckConf); |
|
|
.then(MakeConfReadOnly); |
|
|
// .then(MakeConfReadOnly);
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getConf(flock) { |
|
|
function getConf(flock) { |
|
|