summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rößler2014-01-21 15:37:30 +0100
committerChristian Rößler2014-01-21 15:37:30 +0100
commit5ffdc5a5a054298289184cd1150024ed37ed3d6f (patch)
treeb5a10110c657c0e14096a17aae5f9f3e19544c7c
parent[packagemanager.inc] --force-resolution for zypper based package installation (diff)
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-5ffdc5a5a054298289184cd1150024ed37ed3d6f.tar.gz
tm-scripts-5ffdc5a5a054298289184cd1150024ed37ed3d6f.tar.xz
tm-scripts-5ffdc5a5a054298289184cd1150024ed37ed3d6f.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
-rwxr-xr-xremote/setup_target4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 5fc68a4f..11a8ffbb 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -120,6 +120,10 @@ read_build () {
export_builds() {
[ ! -d "${MODE_DIR}/builds" ] && perror "No ${MODE_DIR}/builds, nothing to export."
+ if mount|grep -q tm-scripts/remote/builds; then
+ pwarning "${MODE_DIR}/builds already exported! Ignoring..."
+ return 1;
+ fi
pinfo "Mounting ${MODE_DIR}/builds to ${EXPORT_DIR}. This will make the local builds syncable from another machine."
[ ! -d "${EXPORT_DIR}" ] && mkdir -p "${EXPORT_DIR}"
mount --bind ${MODE_DIR}/builds ${EXPORT_DIR} || perror "Failed to bind mount ${MODE_DIR}/builds to ${EXPORT_DIR}"