Update peach-config to set file permissions correctly
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
5629a048a1
commit
64b5929e5c
|
@ -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]]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "peach-config"
|
||||
version = "0.1.20"
|
||||
version = "0.1.21"
|
||||
authors = ["Andrew Reid <gnomad@cryptolab.net>", "Max Fowler <max@mfowler.info>"]
|
||||
edition = "2018"
|
||||
description = "Command line tool for installing, updating and configuring PeachCloud"
|
||||
|
|
|
@ -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 ]");
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "peach-web"
|
||||
version = "0.6.12
|
||||
version = "0.6.13"
|
||||
authors = ["Andrew Reid <gnomad@cryptolab.net>"]
|
||||
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."
|
||||
|
|
Loading…
Reference in New Issue