From: David Galloway Date: Tue, 24 Mar 2020 19:28:10 +0000 (-0400) Subject: sync-push: Create relative symlinks instead of absolute X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1534%2Fhead;p=ceph-build.git 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 --- 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 }