diff --git a/Cargo.lock b/Cargo.lock index a012620..6aa9495 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1079,6 +1079,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +[[package]] +name = "openssl-src" +version = "300.6.0+3.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8e8cbfd3a4a8c8f089147fd7aaa33cf8c7450c4d09f8f80698a0cf093abeff4" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.115" @@ -1087,6 +1096,7 @@ checksum = "158fe5b292746440aa6e7a7e690e55aeb72d41505e2804c23c6973ad0e9c9781" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] diff --git a/Cargo.toml b/Cargo.toml index f2909fb..b655c28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ rusqlite = { version = "0.32", features = ["bundled"] } toml = "0.8" # HTTP client (for Forgejo API) -reqwest = { version = "0.12", features = ["json"] } +reqwest = { version = "0.12", features = ["json", "native-tls-vendored"] } # Logging tracing = "0.1" diff --git a/src/execution/mod.rs b/src/execution/mod.rs index e33a999..25f8719 100644 --- a/src/execution/mod.rs +++ b/src/execution/mod.rs @@ -130,7 +130,7 @@ impl SshExecutor { cmd.arg("-i").arg(key); } cmd.arg(format!("{}@{}", host.ssh_user, host.hostname)) - .arg(command); + .arg(format!("source ~/.profile 2>/dev/null; {command}")); cmd };