22 lines
680 B
Bash
22 lines
680 B
Bash
|
##############################################################################
|
||
|
# This optional file "builder-targets-cb.sh" will be called by builder.sh
|
||
|
#
|
||
|
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
||
|
# callbacks: cb_package_makeproductfile
|
||
|
#
|
||
|
##############################################################################
|
||
|
|
||
|
|
||
|
function create() {
|
||
|
echo "Create"
|
||
|
builder_create
|
||
|
}
|
||
|
|
||
|
function cleanup() {
|
||
|
echo "Cleanup:"
|
||
|
|
||
|
local opsi_file=${OPSI_REPOS_PRODUCT_DIR}/${OPSI_REPOS_FILE_PATTERN}.opsi
|
||
|
cp -av ${OPSI_REPOS_PRODUCT_DIR}/${OPSI_REPOS_FILE_PATTERN}.opsi /tmp
|
||
|
chmod 666 /tmp/${OPSI_REPOS_FILE_PATTERN}.opsi
|
||
|
}
|