aboutsummaryrefslogtreecommitdiff
path: root/app/services/govuk_guix/update_gcroots_directory.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/govuk_guix/update_gcroots_directory.rb')
-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]
)