Code

source: openvpn.manager/builder-targets-cb.sh @ 2b5e4d

Revision 2b5e4d, 1.1 KB checked in by geos_one, 7 years ago (diff)

make it work the zip dont provide all the files so also extract the setup that is not solent install aware

  • Property mode set to 100644
Line 
1##############################################################################
2# This optional file "builder-targets-cb.sh" will be called by builder.sh
3#
4# The targets will be called from thde opsi-builder using the following
5# order: config, prepare, retrieve, create, package, publish, commit, cleanup
6# You can overwrite the target functions in builder-targets-cb.sh
7#
8# You can define callback functions. The functions are called from
9# opsi-builder within processing a target
10#   cb_package_makeproductfile
11#
12# You can use every variable defined in any configuration file or by
13# the defined builder script itself. Also, calling the predefined
14# targets builder_<targetname> is possible.
15#
16# Abstract:
17#  target order: config, prepare, retrieve, create, package, publish, commit, cleanup
18#  callbacks: <none>
19#
20##############################################################################
21
22function cleanup() {
23    echo "Cleanup"
24    builder_cleanup
25}
26
27function create() {
28    echo "Create"
29    builder_create
30
31        mv $INST_DIR/CLIENT_DATA/TEMP/\$COMMONFILES/OpenVPN\ Manager/* $INST_DIR/CLIENT_DATA/ALL
32        rm -rf $INST_DIR/CLIENT_DATA/TEMP
33}
Note: See TracBrowser for help on using the repository browser.