From 9cbf12d3a1c71fd678322ee48160a7d711f5afb7 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 24 Mar 2020 15:28:10 -0400 Subject: [PATCH] sync-push: Create relative symlinks instead of absolute This allows people to `rsync --copy-links -aiv rsync://download.ceph.com/ceph/{debian,rpm}-octopus .` and have rsync follow the symlink. The previous way of symlinking did not. Signed-off-by: David Galloway --- scripts/sync-push | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/sync-push b/scripts/sync-push index 82cac939d..74d838c9b 100644 --- a/scripts/sync-push +++ b/scripts/sync-push @@ -50,8 +50,9 @@ ceph_sync() { # Since paths are listed alphabetically/numerically in the first `for` loop, the last $version is what gets used for the new symlink below. if $newgen; then - ssh signer@download.ceph.com "ln -sfn /data/download.ceph.com/www/debian-$version /data/download.ceph.com/www/debian-$release; \ - ln -sfn /data/download.ceph.com/www/rpm-$version /data/download.ceph.com/www/rpm-$release" + ssh signer@download.ceph.com "cd /data/download.ceph.com/www/; \ + ln -sfn debian-$version debian-$release; \ + ln -sfn rpm-$version rpm-$release" fi } -- 2.47.3