aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/services/govuk_guix/build_mini_environment.rb2
1 files changed, 1 insertions, 1 deletions
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(