]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Simplify ssh ctl path
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 27 Aug 2017 19:45:12 +0000 (21:45 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 27 Aug 2017 19:45:12 +0000 (21:45 +0200)
Now, when we have novaboot PID in the file name, it is not necessary to
have target user, host and port there as well.

novaboot

index e72b90d40345a4aebf32aaa308756c15e574eafd..df645ff7fe9ba7d8b60b1e9f7997b82eb1aa4191 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -237,7 +237,7 @@ sub handle_novaboot_server
 {
     my ($n, $val) = @_;
     my $xdg_runtime_dir = $ENV{XDG_RUNTIME_DIR} || '/var/run';
-    my $ssh_ctl_path = "${xdg_runtime_dir}/novaboot$$-%r@%h%p";
+    my $ssh_ctl_path = "${xdg_runtime_dir}/novaboot$$";
 
     @remote_cmd = ('ssh', '-tt', '-M', '-S', $ssh_ctl_path, $val, 'console');
     $remote_expect = "novaboot-shell: Connected";