diff options
author | notgne2 | 2020-10-01 12:43:33 -0700 |
---|---|---|
committer | notgne2 | 2020-10-01 12:43:33 -0700 |
commit | ea5aab76849ba3ce9ff2b7eba2a391d4ea33fa3a (patch) | |
tree | f59aa113c111e87d0df9a3028a98ff6237177f0e /src/utils/push.rs | |
parent | 05a997558400f093c7278decd6300ce09044227b (diff) |
Improve nix copy stuff
Diffstat (limited to 'src/utils/push.rs')
-rw-r--r-- | src/utils/push.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/utils/push.rs b/src/utils/push.rs index c87c32b..38a576f 100644 --- a/src/utils/push.rs +++ b/src/utils/push.rs @@ -66,7 +66,9 @@ pub async fn push_profile( .arg("-k") .arg(local_key) .arg(&profile.profile_settings.path) - .arg(&deploy_data.current_exe) + .arg(&super::deploy_path_to_activate_path_str( + &deploy_data.current_exe, + )?) .stdout(Stdio::null()) .stderr(Stdio::null()) .spawn()? @@ -101,10 +103,10 @@ pub async fn push_profile( deploy_data.ssh_user, node.node_settings.hostname )) .arg(&profile.profile_settings.path) - .arg(&deploy_data.current_exe) + .arg(&super::deploy_path_to_activate_path_str( + &deploy_data.current_exe, + )?) .env("NIX_SSHOPTS", ssh_opts_str) - .stdout(Stdio::null()) - .stderr(Stdio::null()) .spawn()? .await?; |