softmaker.planmakerviewer/builder-targets-cb.sh

22 lines
680 B
Bash
Raw Normal View History

2012-01-28 21:57:06 +01:00
##############################################################################
# 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
}