mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
appmgr: sync after deleting hostname
This commit is contained in:
committed by
Aiden McClelland
parent
f993f19614
commit
25c55ea426
15
appmgr/Cargo.lock
generated
15
appmgr/Cargo.lock
generated
@@ -51,6 +51,7 @@ dependencies = [
|
||||
"lazy_static",
|
||||
"linear-map",
|
||||
"log",
|
||||
"nix 0.19.1",
|
||||
"openssl",
|
||||
"pest",
|
||||
"pest_derive",
|
||||
@@ -601,7 +602,7 @@ dependencies = [
|
||||
"gcc",
|
||||
"libc",
|
||||
"mktemp",
|
||||
"nix",
|
||||
"nix 0.11.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1310,6 +1311,18 @@ dependencies = [
|
||||
"void",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nix"
|
||||
version = "0.19.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b2ccba0cfe4fdf15982d1674c69b1fd80bad427d293849982668dfe454bd61f2"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cc",
|
||||
"cfg-if 1.0.0",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nom"
|
||||
version = "4.2.3"
|
||||
|
||||
@@ -32,6 +32,7 @@ itertools = "0.9.0"
|
||||
lazy_static = "1.4"
|
||||
linear-map = { version = "1.2", features = ["serde_impl"] }
|
||||
log = "0.4.11"
|
||||
nix = "0.19.1"
|
||||
openssl = "0.10.30"
|
||||
pest = "2.1"
|
||||
pest_derive = "2.1"
|
||||
|
||||
@@ -217,7 +217,7 @@ pub async fn read_tor_key(
|
||||
version: HiddenServiceVersion,
|
||||
timeout: Option<Duration>,
|
||||
) -> Result<String, Error> {
|
||||
log::info!("Retrieving Tor hidden service address for {}.", name);
|
||||
log::info!("Retrieving Tor hidden service key for {}.", name);
|
||||
let addr_path = Path::new(HIDDEN_SERVICE_DIR_ROOT)
|
||||
.join(format!("app-{}", name))
|
||||
.join(match version {
|
||||
@@ -287,6 +287,7 @@ pub async fn set_svc(
|
||||
Err(e)
|
||||
}
|
||||
})?;
|
||||
nix::unistd::sync();
|
||||
hidden_services.commit().await?;
|
||||
log::info!("Reloading Tor.");
|
||||
let svc_exit = std::process::Command::new("service")
|
||||
|
||||
Reference in New Issue
Block a user