bug fixing and deploy and build diagnostics
This commit is contained in:
@@ -42,10 +42,11 @@ async fn read_password() -> String {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
let _ = std::fs::set_permissions(
|
||||
let _ = tokio::fs::set_permissions(
|
||||
SECRETS_PATH,
|
||||
std::fs::Permissions::from_mode(0o600),
|
||||
);
|
||||
)
|
||||
.await;
|
||||
}
|
||||
debug!("Bitcoin RPC password generated and saved");
|
||||
}
|
||||
@@ -70,13 +71,3 @@ pub async fn bitcoin_rpc_credentials() -> (String, String) {
|
||||
(RPC_USER.to_string(), pass.clone())
|
||||
}
|
||||
|
||||
/// Get the Bitcoin RPC password (for container config generation).
|
||||
pub async fn bitcoin_rpc_password() -> String {
|
||||
let (_, pass) = bitcoin_rpc_credentials().await;
|
||||
pass
|
||||
}
|
||||
|
||||
/// Get the Bitcoin RPC username.
|
||||
pub async fn bitcoin_rpc_username() -> String {
|
||||
RPC_USER.to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user