summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/infra.gentoo.org/rsync-node/wrap_rsync.sh6
1 files 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() {