Testing
This commit is contained in:
parent
d77139b172
commit
b287eb35fd
@ -638,8 +638,8 @@ impl ServiceCollector {
|
|||||||
tracing::debug!("Starting nginx site detection");
|
tracing::debug!("Starting nginx site detection");
|
||||||
|
|
||||||
// For NixOS and other systems, get the actual running nginx config
|
// For NixOS and other systems, get the actual running nginx config
|
||||||
let output = match Command::new("nginx")
|
let output = match Command::new("sudo")
|
||||||
.args(["-T"])
|
.args(["nginx", "-T"])
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.output()
|
.output()
|
||||||
@ -647,7 +647,7 @@ impl ServiceCollector {
|
|||||||
{
|
{
|
||||||
Ok(output) => output,
|
Ok(output) => output,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::warn!("Failed to execute nginx -T: {}", e);
|
tracing::warn!("Failed to execute sudo nginx -T: {}", e);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user