From b6c1930ffe65afbbccf1252ca084a932d19c2d64 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 23 Jun 2018 09:24:33 +0100 Subject: Only copy the guix revision to the remote host if possible --- app/services/govuk_guix/build_mini_environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services/govuk_guix/build_mini_environment.rb') diff --git a/app/services/govuk_guix/build_mini_environment.rb b/app/services/govuk_guix/build_mini_environment.rb index 5e5fd85..6de6b81 100644 --- a/app/services/govuk_guix/build_mini_environment.rb +++ b/app/services/govuk_guix/build_mini_environment.rb @@ -36,7 +36,7 @@ module GovukGuix::BuildMiniEnvironment remote_host = options[:run_remotely_on_host] - if remote_host + if remote_host && File.exist?('/var/guix/daemon-socket/socket') # Copy the revision to the remote host, to ensure it's available # there run_command( -- cgit v1.2.3