Fix uptime command for BusyBox
This commit is contained in:
@@ -100,7 +100,7 @@ export async function GET(request: Request) {
|
||||
const load = execSync('uptime | awk -F\'load average:\' \'{print $2}\'', { cwd: '/' }).toString().trim();
|
||||
|
||||
// Get uptime
|
||||
const uptime = execSync('uptime -p', { cwd: '/' }).toString().trim();
|
||||
const uptime = execSync('uptime', { cwd: '/' }).toString().trim();
|
||||
|
||||
return NextResponse.json({
|
||||
containers: `${containers} running`,
|
||||
|
||||
Reference in New Issue
Block a user