Compare commits

..

2 Commits

Author SHA1 Message Date
dd042910a9 synchroniser : update_links : use run instead of Popen
using Popen causes the command to return before making the connection so
the closing of the master connection (in runners) happens before we had
time to log into the server forcing us to complete an extra login step.
2026-01-23 17:33:41 +01:00
fd825f7e87 synchroniser : use -S to avoid login in
We create a master ssh connection the -S flag uses this to avoid having
to log in again.
2026-01-23 17:29:40 +01:00

View File

@@ -217,6 +217,7 @@ class Synchroniser:
command.append(value)
sshargs = f"-p {self.remote_port} "
sshargs += f"-S {self.control_path} "
for arg, value in self.ssh_settings.items():
sshargs += arg + " " + value + " "
command.append("-sshargs")
@@ -269,7 +270,7 @@ class Synchroniser:
link_background_wrapper
]
link_update_process = subprocess.Popen(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
link_update_process = subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
if not background:
print("Starting links update.")