1
0
Fork 0
mirror of synced 2026-06-05 16:08:19 +00:00

fix journalctl related bug

This commit is contained in:
Varun Sharma 2025-04-13 10:09:49 -07:00
commit 5d277fc873
2 changed files with 2 additions and 15 deletions

15
dist/post/index.js vendored
View file

@ -27947,21 +27947,8 @@ var cleanup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _
console.log(content);
}
var disable_sudo = process.env.STATE_disableSudo;
if (disable_sudo !== "true") {
try {
var journalLog = external_child_process_.execSync("sudo journalctl -u agent.service --lines=1000", {
encoding: "utf8",
maxBuffer: 1024 * 1024 * 10 // 10MB buffer
});
console.log("agent.service log:");
console.log(journalLog);
}
catch (error) {
console.log("Warning: Could not fetch service logs:", error.message);
}
}
var disable_sudo_and_containers = process.env.disableSudoAndContainers;
if (disable_sudo_and_containers !== "true") {
if (disable_sudo !== "true" && disable_sudo_and_containers !== "true") {
try {
var journalLog = external_child_process_.execSync("sudo journalctl -u agent.service --lines=1000", {
encoding: "utf8",

File diff suppressed because one or more lines are too long