diff --git a/Cargo.lock b/Cargo.lock index f2a6a0e..a28c5aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2381,7 +2381,7 @@ dependencies = [ [[package]] name = "peach-config" -version = "0.1.20" +version = "0.1.21" dependencies = [ "clap", "env_logger 0.6.2", @@ -2511,7 +2511,7 @@ dependencies = [ [[package]] name = "peach-web" -version = "0.6.11" +version = "0.6.13" dependencies = [ "async-std", "base64 0.13.0", @@ -2585,7 +2585,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216" dependencies = [ "libc", - "time 0.1.44", + "time 0.1.43", ] [[package]] diff --git a/peach-config/Cargo.toml b/peach-config/Cargo.toml index 225524d..f3168de 100644 --- a/peach-config/Cargo.toml +++ b/peach-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peach-config" -version = "0.1.20" +version = "0.1.21" authors = ["Andrew Reid ", "Max Fowler "] edition = "2018" description = "Command line tool for installing, updating and configuring PeachCloud" diff --git a/peach-config/src/setup_peach.rs b/peach-config/src/setup_peach.rs index e027db3..d2736f9 100644 --- a/peach-config/src/setup_peach.rs +++ b/peach-config/src/setup_peach.rs @@ -6,6 +6,7 @@ use crate::error::{FileWriteError, PeachConfigError}; use crate::generate_manifest::save_hardware_config; use crate::setup_networking::configure_networking; use crate::setup_peach_deb::setup_peach_deb; +use crate::set_permissions::set_permissions; use crate::update::update_microservices; use crate::utils::{cmd, conf, create_group_if_doesnt_exist, does_user_exist, get_output}; use crate::RtcOption; @@ -239,6 +240,9 @@ pub fn setup_peach( info!("[ SAVING LOG OF HARDWARE CONFIGURATIONS ]"); save_hardware_config(i2c, rtc)?; + info!("[ SETTING FILE PERMISSIONS ]"); + set_permissions()?; + info!("[ PEACHCLOUD SETUP COMPLETE ]"); info!("[ ------------------------- ]"); info!("[ please reboot your device ]"); diff --git a/peach-config/src/update.rs b/peach-config/src/update.rs index 4f3b8a6..51398c1 100644 --- a/peach-config/src/update.rs +++ b/peach-config/src/update.rs @@ -47,8 +47,8 @@ pub fn update_microservices() -> Result<(), PeachConfigError> { cmd(&["apt-get", "update"])?; // filter out peach-config from list of services let services_to_update: Vec<&str> = SERVICES - .to_vec() .iter() + .copied() .filter(|&x| x != "peach-config") .collect(); diff --git a/peach-web/Cargo.toml b/peach-web/Cargo.toml index 4f557bc..11d345b 100644 --- a/peach-web/Cargo.toml +++ b/peach-web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peach-web" -version = "0.6.12 +version = "0.6.13" authors = ["Andrew Reid "] edition = "2018" description = "peach-web is a web application which provides a web interface for monitoring and interacting with the PeachCloud device. This allows administration of the single-board computer (ie. Raspberry Pi) running PeachCloud, as well as the ssb-server and related plugins."