diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-23 09:24:33 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-23 12:58:05 +0100 |
commit | b6c1930ffe65afbbccf1252ca084a932d19c2d64 (patch) | |
tree | 848360ed06cd53b2e120acf308088072ec40617e /app/services | |
parent | 7fb0c23b891b8734cb04a9690cd030a134f5cd4d (diff) | |
download | govuk-mini-environment-admin-b6c1930ffe65afbbccf1252ca084a932d19c2d64.tar govuk-mini-environment-admin-b6c1930ffe65afbbccf1252ca084a932d19c2d64.tar.gz |
Only copy the guix revision to the remote host if possible
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/govuk_guix/build_mini_environment.rb | 2 |
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( |