summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-05-09 16:37:37 (GMT)
committer Mario Fetka <[email protected]>2013-05-09 16:37:37 (GMT)
commit202247d546c6ede201e4036a5b43c95570baef6f (patch)
tree0df56f58fcb0c351dbde350bdbaf6887e2b63b79
parentd1019ad6b397f438d68005d51de1669d7d470e5c (diff)
add link thingy for silk special case
-rw-r--r--lib/builder-targets.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 317bc70..c062609 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -291,11 +291,18 @@ builder_publish() {
# Upload file to repository
mkdir -p ${OPSI_REPOS_PRODUCT_DIR}
-
+
echo "Publishing opsi-package to ${OPSI_REPOS_PRODUCT_DIR}"
local src=${OUTPUT_DIR}/${OPSI_REPOS_FILE_PATTERN}
local dst=${OPSI_REPOS_PRODUCT_DIR}/${OPSI_REPOS_FILE_PATTERN}
+ # Link dir
+ if [ "${OPSI_REPOS_LINK_NEWBUILDS}" = "true" ] ; then
+ mkdir -p ${OPSI_REPOS_BASE_DIR}/.new_builds
+ ln -sf ${OPSI_REPOS_PRODUCT_DIR} ${OPSI_REPOS_BASE_DIR}/.new_builds/${OPSI_REPOS_FILE_PATTERN}
+ builder_check_error "Can't Link file $dst.opsi --> $dst.opsi"
+ fi
+
# copy files
if [ "${OPSI_REPOS_UPLOAD_OPSI}" = "true" ] ; then
cp ${src}.opsi ${dst}.opsi

Powered by Domaintechnik.at | Hosting - Domain - Webspace