removes root requirement for running hab start, now only warns rather than fails
@@ -69,11 +69,8 @@ pub fn package(cfg: ManagerConfig,
-> Result<()> {
let mut ui = UI::default();
if !fs::am_i_root() {
- ui.warn("Running the Habitat Supervisor requires root or administrator privileges. \
- Please retry this command as a super user or use a privilege-granting \
- facility such as sudo.")?;
+ ui.warn("Running the Habitat Supervisor with root or superuser privileges is recommended")?;
ui.br()?;
- return Err(sup_error!(Error::RootRequired));
}
// TODO fn: once we remove the `Multi` feature flag a refactoring of this function will clean
