Enable per-order privileged scripts on managed devices
This commit is contained in:
@@ -78,9 +78,11 @@ impl Config {
|
||||
})
|
||||
}
|
||||
fn validate_profile(&self) -> Result<()> {
|
||||
let state = self.state.as_path();
|
||||
ensure!(
|
||||
self.state.as_path()
|
||||
== std::path::Path::new(rmm_privileged_helper::readiness::SHARED_STATE),
|
||||
state == std::path::Path::new(rmm_privileged_helper::readiness::SHARED_STATE)
|
||||
|| (self.profile == HelperProfile::FullMaintenanceV1
|
||||
&& state == std::path::Path::new("/var/lib/rmm-discovery-helper")),
|
||||
"SHARED_HELPER_LEDGER_REQUIRED"
|
||||
);
|
||||
if self.profile == HelperProfile::FullMaintenanceV1 {
|
||||
|
||||
Reference in New Issue
Block a user