summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schwager <[email protected]>2012-01-29 14:10:08 (GMT)
committer Daniel Schwager <[email protected]>2012-01-29 14:10:08 (GMT)
commit441fdd95aa33ca63d342b908e5478c4358f9c13b (patch)
tree7b7ddb1e1c59bb29ac536f6e9cd663d62c5d96bd
parenteaf1219a36f030c682ca7e2ee0546e796e6ed0c4 (diff)
move creating INST_DIR-directory to prepare-target. Now, it can be use in other targets
-rw-r--r--lib/builder-targets.sh8
1 files 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

Powered by Domaintechnik.at | Hosting - Domain - Webspace