aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-05-30 08:30:58 +0100
committerChristopher Baines <mail@cbaines.net>2019-05-30 08:33:03 +0100
commitbaf19da43f9004662e66be369650e4aedcf58dca (patch)
treec6c35aef1a47779f1c6f62c26e775d71056034ef
parentcbae44c758e367441a045a5c9b6e82e1b095d8a1 (diff)
downloadgovuk-mini-environment-admin-baf19da43f9004662e66be369650e4aedcf58dca.tar
govuk-mini-environment-admin-baf19da43f9004662e66be369650e4aedcf58dca.tar.gz
Change the UpdateGcrootsDirectory ln command
Hopefully these arguments will work a little better.
-rw-r--r--app/services/govuk_guix/update_gcroots_directory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/govuk_guix/update_gcroots_directory.rb b/app/services/govuk_guix/update_gcroots_directory.rb
index 7f70da6..dec4679 100644
--- a/app/services/govuk_guix/update_gcroots_directory.rb
+++ b/app/services/govuk_guix/update_gcroots_directory.rb
@@ -45,8 +45,8 @@ module GovukGuix::UpdateGcrootsDirectory
unless Guix.valid_store_path?(store_path)
run_command(
- 'ln', '-s',
- store_path,
+ 'ln', '-f', '-s',
+ '-T', store_path,
File.join(DIRECTORY, store_path['/gnu/store/'.length..-1]),
run_remotely_on_host: options[:run_remotely_on_host]
)