Skip to content
Snippets Groups Projects
Commit 9b6abd8d authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #9718: Target of ln command is hosting directory, not symlink name

parent 3b4cefd9
No related branches found
No related tags found
No related merge requests found
......@@ -182,8 +182,8 @@ class imager_prepare(LOFARnodeTCP):
"{0}".format(processed_ms_dir)]
if self.globalfs or input_item.host == "localhost":
# symlinking is enough
command = ["ln", "-sfT", "{0}".format(input_item.file),
"{0}".format(processed_ms_dir)]
command = ["ln", "-sf", "{0}".format(input_item.file),
"-t", "{0}".format(processed_ms_dir)]
self.logger.debug("executing: " + " ".join(command))
......
......@@ -200,8 +200,8 @@ class long_baseline(LOFARnodeTCP):
"{0}".format(processed_ms_dir)]
if self.globalfs or input_item.host == "localhost":
# symlinking is enough
command = ["ln", "-sfT", "{0}".format(input_item.file),
"{0}".format(processed_ms_dir)]
command = ["ln", "-sf", "{0}".format(input_item.file),
"-t", "{0}".format(processed_ms_dir)]
self.logger.debug("executing: " + " ".join(command))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment