From 441fdd95aa33ca63d342b908e5478c4358f9c13b Mon Sep 17 00:00:00 2001 From: Daniel Schwager Date: Sun, 29 Jan 2012 15:10:08 +0100 Subject: [PATCH] move creating INST_DIR-directory to prepare-target. Now, it can be use in other targets --- lib/builder-targets.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index 8fb3ad8..1d9b496 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -68,6 +68,10 @@ builder_prepare() { # setup work directory OUTPUT_DIR=$(mktemp -d $TMP_DIR/opsi-builder.XXXXXXXXXX) || { echo "Failed to create temp dir"; exit 1; } + # prepare + INST_DIR=$OUTPUT_DIR/$PN + mkdir $INST_DIR + } @@ -136,10 +140,6 @@ builder_retrieve() { #################### builder_create() { - # prepare - INST_DIR=$OUTPUT_DIR/$PN - mkdir $INST_DIR - # Copy files and convert text files to dos format cp -Rv ${PRODUCT_DIR}/OPSI $INST_DIR cp -Rv ${PRODUCT_DIR}/CLIENT_DATA $INST_DIR