summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2018-12-16 16:54:15 -0500
committerAlec Warner <antarus@gentoo.org>2018-12-16 16:54:15 -0500
commite5fe2050e3ad4d3db9282f816cd2ae1f70bf006e (patch)
treedb94a2c82ad8f79240c20633e9ad6e685cee86aa
parentServe from /srv/gentoo/serving. (diff)
downloadantarus-e5fe2050e3ad4d3db9282f816cd2ae1f70bf006e.tar.gz
antarus-e5fe2050e3ad4d3db9282f816cd2ae1f70bf006e.tar.bz2
antarus-e5fe2050e3ad4d3db9282f816cd2ae1f70bf006e.zip
Fully Qualify paths.
Signed-off-by: Alec Warner <antarus@gentoo.org>
-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() {