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]]
|
[[package]]
|
||||||
name = "peach-config"
|
name = "peach-config"
|
||||||
version = "0.1.20"
|
version = "0.1.21"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"env_logger 0.6.2",
|
"env_logger 0.6.2",
|
||||||
|
@ -2511,7 +2511,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "peach-web"
|
name = "peach-web"
|
||||||
version = "0.6.11"
|
version = "0.6.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"base64 0.13.0",
|
"base64 0.13.0",
|
||||||
|
@ -2585,7 +2585,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216"
|
checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"time 0.1.44",
|
"time 0.1.43",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "peach-config"
|
name = "peach-config"
|
||||||
version = "0.1.20"
|
version = "0.1.21"
|
||||||
authors = ["Andrew Reid <gnomad@cryptolab.net>", "Max Fowler <max@mfowler.info>"]
|
authors = ["Andrew Reid <gnomad@cryptolab.net>", "Max Fowler <max@mfowler.info>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Command line tool for installing, updating and configuring PeachCloud"
|
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::generate_manifest::save_hardware_config;
|
||||||
use crate::setup_networking::configure_networking;
|
use crate::setup_networking::configure_networking;
|
||||||
use crate::setup_peach_deb::setup_peach_deb;
|
use crate::setup_peach_deb::setup_peach_deb;
|
||||||
|
use crate::set_permissions::set_permissions;
|
||||||
use crate::update::update_microservices;
|
use crate::update::update_microservices;
|
||||||
use crate::utils::{cmd, conf, create_group_if_doesnt_exist, does_user_exist, get_output};
|
use crate::utils::{cmd, conf, create_group_if_doesnt_exist, does_user_exist, get_output};
|
||||||
use crate::RtcOption;
|
use crate::RtcOption;
|
||||||
|
@ -239,6 +240,9 @@ pub fn setup_peach(
|
||||||
info!("[ SAVING LOG OF HARDWARE CONFIGURATIONS ]");
|
info!("[ SAVING LOG OF HARDWARE CONFIGURATIONS ]");
|
||||||
save_hardware_config(i2c, rtc)?;
|
save_hardware_config(i2c, rtc)?;
|
||||||
|
|
||||||
|
info!("[ SETTING FILE PERMISSIONS ]");
|
||||||
|
set_permissions()?;
|
||||||
|
|
||||||
info!("[ PEACHCLOUD SETUP COMPLETE ]");
|
info!("[ PEACHCLOUD SETUP COMPLETE ]");
|
||||||
info!("[ ------------------------- ]");
|
info!("[ ------------------------- ]");
|
||||||
info!("[ please reboot your device ]");
|
info!("[ please reboot your device ]");
|
||||||
|
|
|
@ -47,8 +47,8 @@ pub fn update_microservices() -> Result<(), PeachConfigError> {
|
||||||
cmd(&["apt-get", "update"])?;
|
cmd(&["apt-get", "update"])?;
|
||||||
// filter out peach-config from list of services
|
// filter out peach-config from list of services
|
||||||
let services_to_update: Vec<&str> = SERVICES
|
let services_to_update: Vec<&str> = SERVICES
|
||||||
.to_vec()
|
|
||||||
.iter()
|
.iter()
|
||||||
|
.copied()
|
||||||
.filter(|&x| x != "peach-config")
|
.filter(|&x| x != "peach-config")
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "peach-web"
|
name = "peach-web"
|
||||||
version = "0.6.12
|
version = "0.6.13"
|
||||||
authors = ["Andrew Reid <gnomad@cryptolab.net>"]
|
authors = ["Andrew Reid <gnomad@cryptolab.net>"]
|
||||||
edition = "2018"
|
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."
|
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