aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 09:24:33 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 12:58:05 +0100
commitb6c1930ffe65afbbccf1252ca084a932d19c2d64 (patch)
tree848360ed06cd53b2e120acf308088072ec40617e
parent7fb0c23b891b8734cb04a9690cd030a134f5cd4d (diff)
downloadgovuk-mini-environment-admin-b6c1930ffe65afbbccf1252ca084a932d19c2d64.tar
govuk-mini-environment-admin-b6c1930ffe65afbbccf1252ca084a932d19c2d64.tar.gz
Only copy the guix revision to the remote host if possible
-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(