summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDT Netsolution GmbH <[email protected]>2012-02-06 20:09:13 (GMT)
committer DT Netsolution GmbH <[email protected]>2012-02-06 20:09:13 (GMT)
commit21a6d88a8c6b822f5c3b25e2695af5a82df6a192 (patch)
tree9c6124566c32a68f2c80cc29878df43c942d8897
parent4bb35048296d3a182c863552b534ce1417862755 (diff)
- Improvement: using jenkins, a temp-direcory based on the date is not enough - added pid
-rwxr-xr-xbin/opsi-builder.sh1
-rw-r--r--lib/builder-targets.sh2
2 files changed, 1 insertions, 2 deletions
diff --git a/bin/opsi-builder.sh b/bin/opsi-builder.sh
index 3bc5b7a..1f2752d 100755
--- a/bin/opsi-builder.sh
+++ b/bin/opsi-builder.sh
@@ -39,7 +39,6 @@ builder_controller() {
####################
# Main
####################
-
# get the 'real' directory this program stored in (resolve symbolic links)
PRG=$(readlink -f $0)
BASEDIR=`dirname "$PRG"`
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 295d10e..de77ba8 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -90,7 +90,7 @@ builder_prepare() {
log_debug "Distribution directory: $DIST_CACHE_DIR"
# setup work directory
- OUTPUT_DIR=$TMP_DIR/opsi-builder.`date +%Y%m%d-%H%M%S`
+ OUTPUT_DIR="$TMP_DIR/opsi-builder.`date +%Y%m%d-%H%M%S`.$$"
mkdir -p ${OUTPUT_DIR}
builder_check_error "Cannot create temp directory ${OUTPUT_DIR}"

Powered by Domaintechnik.at | Hosting - Domain - Webspace