preboot fix work with params
parent
77a1e24a47
commit
2dbfb4a93a
|
|
@ -103,11 +103,11 @@ pub struct PrebootParams {
|
|||
|
||||
impl PrebootParams {
|
||||
pub fn validate(self) -> Result<Self> {
|
||||
if !self.socket_path.exists() {
|
||||
if !self.socket_path.exists() && !self.no_hostagent {
|
||||
return Err(Error::msg("Socket-file not found or Noxis can't read it. Cannot start"));
|
||||
}
|
||||
// existing log dir
|
||||
if !self.log_to.exists() {
|
||||
if !self.log_to.exists() && !self.no_logs {
|
||||
return Err(Error::msg("Log Directory Not Found or Noxis can't read it. Cannot start"));
|
||||
}
|
||||
// existing sock file
|
||||
|
|
|
|||
Loading…
Reference in New Issue