diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-15 09:33:10 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2013-06-15 15:30:03 +0000 |
commit | 2a799319bd19ce9d303aa63d30ab7c556b17b6bb (patch) | |
tree | 0f0c8f5d74c34f625025c10f0900689e9b519068 | |
parent | 3e8721c40abdc474ad3431d62d102e10aee7488f (diff) | |
download | definitions-2a799319bd19ce9d303aa63d30ab7c556b17b6bb.tar.gz |
Don't dereference the default symbolic link when updating it
Or else this
ln -s -f update1 /mp/systems/default
will do this
'/pp/systems/default/update1' -> 'update1
When we want
'/pp/systems/default' -> 'update1
-rwxr-xr-x | ssh-rsync.write | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh-rsync.write b/ssh-rsync.write index fba550cd..83091c4b 100755 --- a/ssh-rsync.write +++ b/ssh-rsync.write @@ -84,8 +84,7 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension): # not have an updated extlinux config file self.update_remote_extlinux(location, remote_mnt, version_label) - cliapp.ssh_runcmd(location, ['ln', '-s', '-f', - version_label, + cliapp.ssh_runcmd(location, ['ln', '-sfn', version_label, default_path]) except Exception as e: try: |