43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
##############################################################################
|
|
# This optional file "builder-targets-cb.sh" will be called by builder.sh
|
|
#
|
|
# The targets will be called from thde opsi-builder using the following
|
|
# order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
|
# You can overwrite the target functions in builder-targets-cb.sh
|
|
#
|
|
# You can define callback functions. The functions are called from
|
|
# opsi-builder within processing a target
|
|
# cb_package_makeproductfile
|
|
#
|
|
# You can use every variable defined in any configuration file or by
|
|
# the defined builder script itself. Also, calling the predefined
|
|
# targets builder_<targetname> is possible.
|
|
#
|
|
# Abstract:
|
|
# target order: config, prepare, retrieve, create, package, publish, commit, cleanup
|
|
# callbacks: <none>
|
|
#
|
|
##############################################################################
|
|
|
|
function cleanup() {
|
|
echo "Cleanup"
|
|
builder_cleanup
|
|
}
|
|
|
|
|
|
function create() {
|
|
echo "Create"
|
|
builder_create
|
|
|
|
7z x -o$INST_DIR/CLIENT_DATA/X86/ $INST_DIR/CLIENT_DATA/X86/${DL_FILE[1]}
|
|
|
|
# move the Windows 8 dotnet 2 - 3.5 in place
|
|
mv -v $INST_DIR/CLIENT_DATA/X86/DBAN.BZI $INST_DIR/SERVER_DATA/tftpboot/linux/dban.bzi
|
|
|
|
# change exec bit on the dban file
|
|
find $INST_DIR/SERVER_DATA -type d -print0 | xargs -0 chmod 755 -v
|
|
find $INST_DIR/SERVER_DATA -type f -print0 | xargs -0 chmod 755 -v
|
|
|
|
# delete the temp directory
|
|
rm -rf $INST_DIR/CLIENT_DATA
|
|
} |