From e5fe2050e3ad4d3db9282f816cd2ae1f70bf006e Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 16 Dec 2018 16:54:15 -0500 Subject: Fully Qualify paths. Signed-off-by: Alec Warner --- src/infra.gentoo.org/rsync-node/wrap_rsync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh index 9505a8d..778fe5a 100755 --- a/src/infra.gentoo.org/rsync-node/wrap_rsync.sh +++ b/src/infra.gentoo.org/rsync-node/wrap_rsync.sh @@ -55,9 +55,9 @@ function init() { sync "${1}" "${SOURCE_MIRROR}" # this is synchronous. # We serve out of ${DEST_DIR}/serving - ln -s "${1}" "serving" + ln -s "${1}" "${DEST_DIR}/serving" # Setup the update partition - ln -s "${2}" "update" + ln -s "${2}" "${DEST_DIR}/update" # Then launch rsyncd; it will detach into the background and serve from serving. rsync --daemon --config="/opt/rsync/rsyncd.conf" @@ -77,7 +77,7 @@ function update() { # Point the serving symlink at the update partition; now freshly updated. mv -fT "${DEST_DIR}/update" "${DEST_DIR}/serving" # Point the update partition at the old serving partition. - ln -sf "${old_serving}" "update" + ln -sf "${old_serving}" "${DEST_DIR}/update" } function serve() { -- cgit v1.2.3-65-gdbad