diff options
| author | Jonathan Bauer | 2013-08-12 15:31:32 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2013-08-12 15:31:32 +0200 |
| commit | a25b6529ce560c06ea9b4a931e7a0c3f4e6c4db6 (patch) | |
| tree | ab310c6b2430c5a4e75d68a1e15c9f9688ae7d94 /scripts | |
| parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-a25b6529ce560c06ea9b4a931e7a0c3f4e6c4db6.tar.gz tm-scripts-a25b6529ce560c06ea9b4a931e7a0c3f4e6c4db6.tar.xz tm-scripts-a25b6529ce560c06ea9b4a931e7a0c3f4e6c4db6.zip | |
[clone_stage4] fix BASE_DIR <-> BASEDIR
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/clone_stage4 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/clone_stage4 b/scripts/clone_stage4 index ab1cce05..ad468f4f 100755 --- a/scripts/clone_stage4 +++ b/scripts/clone_stage4 @@ -23,12 +23,11 @@ qnd_exit() { BASE_DIR="${ROOT_DIR}/server/local_builds/$1" BOOT_DIR="${ROOT_DIR}/server/boot/$1" [ ! -d "$BASE_DIR" ] && perror "Unknown Vorlage '$1'" -BASEDIR="${BASE_DIR}/$2" +BASE_DIR="${BASE_DIR}/$2" [ ! -d "$BASE_DIR" ] && perror "Unknown Stage '$2' for Vorlage '$1'" TARGET_DIR="$3" mkdir -p "$TARGET_DIR" mkdir -p "$BOOT_DIR" -[ ! -z "$(ls "${TARGET_DIR}")" ] && perror "Target dir '${TARGET_DIR}' not empty" pinfo "Building rsync exclude-file for building stage 4...." cp "${ROOT_DIR}/data/basic.nocopy" "${BOOT_DIR}/exclude-stage4" @@ -48,4 +47,4 @@ else fi pinfo "Cloning via rsync" -rsync -a --numeric-ids -v --exclude-from="${BOOT_DIR}/exclude-stage4" "${RSYNC_OPTS}" "${RSYNC_SOURCE}" "${TARGET_DIR}" || perror "rsync from '${RSYNC_SOURCE}' to '${TARGET_DIR}' failed." +rsync -a --delete --numeric-ids -v --exclude-from="${BOOT_DIR}/exclude-stage4" "${RSYNC_OPTS}" "${RSYNC_SOURCE}" "${TARGET_DIR}" || perror "rsync from '${RSYNC_SOURCE}' to '${TARGET_DIR}' failed." |
