summaryrefslogtreecommitdiff
path: root/lib/builder-utils.sh
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-03-08 07:06:41 (GMT)
committer Mario Fetka <[email protected]>2013-03-08 07:06:41 (GMT)
commitdd1364dced091d5e5704b053445d9c2c249d44d0 (patch)
tree8a3a24b3154bf82551e78673ff3b98e56a3ae158 /lib/builder-utils.sh
parent9a19cdaacbdd547c74bd9ba5f313738bf4ec5de1 (diff)
add new samples and rename OPSI_INI_NAME to OPSI_INI_OPTION (ini typical naming)
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r--lib/builder-utils.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 78cfffa..6c693b3 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -226,6 +226,8 @@ create_winst_varfile() {
local var_file=$1
echo -n >$var_file
+ echo "; Opsi Builder Variables" >>$var_file
+ echo >>$var_file
for (( i = 0 ; i < ${#DL_SOURCE[@]} ; i++ )) ; do
if [ -z ${DL_WINST_NAME[$i]} ] ; then continue ; fi
@@ -316,11 +318,13 @@ write_ini_file() {
$CMD_iniset $ini_file --COMMON ${var}="${!var}"
done
+ echo "; Opsi INI File Variables" >>$var_file
+ echo >>$var_file
# publish custom variables
- for (( i = 0 ; i < ${#OPSI_INI_NAME[@]} ; i++ )) ; do
- $CMD_iniset $ini_file --${OPSI_INI_SECTION[$i]} ${OPSI_INI_NAME[$i]}="${OPSI_INI_VALUE[$i]}"
- echo "DefVar \$${OPSI_INI_NAME[$i]}\$" >>$var_file
- echo "Set \$${OPSI_INI_NAME[$i]}\$ = \"${OPSI_INI_VALUE[$i]}\"" >>$var_file
+ for (( i = 0 ; i < ${#OPSI_INI_OPTION[@]} ; i++ )) ; do
+ $CMD_iniset $ini_file --${OPSI_INI_SECTION[$i]} ${OPSI_INI_OPTION[$i]}="${OPSI_INI_VALUE[$i]}"
+ echo "DefVar \$${OPSI_INI_OPTION[$i]}\$" >>$var_file
+ echo "Set \$${OPSI_INI_OPTION[$i]}\$ = \"${OPSI_INI_VALUE[$i]}\"" >>$var_file
done
echo >>$var_file

Powered by Domaintechnik.at | Hosting - Domain - Webspace