move creating INST_DIR-directory to prepare-target. Now, it can be use in other targets
This commit is contained in:
parent
eaf1219a36
commit
441fdd95aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user