add missing variable write

This commit is contained in:
Mario Fetka 2013-03-08 05:05:25 +01:00
parent a7f8a81d46
commit 9a19cdaacb
2 changed files with 7 additions and 2 deletions

View File

@ -214,7 +214,7 @@ builder_create() {
# write ini file # write ini file
local ini_file=${INST_DIR}/CLIENT_DATA/opsi-$PN.ini local ini_file=${INST_DIR}/CLIENT_DATA/opsi-$PN.ini
write_ini_file $ini_file write_ini_file $ini_file $var_file
# add the new vaiables to all *.ins winst files # add the new vaiables to all *.ins winst files
for inst_file in `find ${INST_DIR}/CLIENT_DATA -type f -name "*.ins"` ; do for inst_file in `find ${INST_DIR}/CLIENT_DATA -type f -name "*.ins"` ; do

View File

@ -235,7 +235,7 @@ create_winst_varfile() {
done done
# publish some other variables # publish some other variables
for var in VENDOR PN VERSION RELEASE PRIORITY ADVICE TYPE CREATOR_TAG CREATOR_NAME CREATOR_EMAIL ; do for var in VENDOR PN VERSION RELEASE PRIORITY NAME ADVICE TYPE CREATOR_TAG CREATOR_NAME CREATOR_EMAIL ; do
echo "DefVar \$${var}\$" >>$var_file echo "DefVar \$${var}\$" >>$var_file
echo "Set \$${var}\$ = \"${!var}\"" >>$var_file echo "Set \$${var}\$ = \"${!var}\"" >>$var_file
done done
@ -309,6 +309,7 @@ function calc_release() {
################### ###################
write_ini_file() { write_ini_file() {
local ini_file=$1 local ini_file=$1
local var_file=$2
# publish some other variables # publish some other variables
for var in VENDOR PN VERSION RELEASE TYPE CREATOR_TAG CREATOR_NAME CREATOR_EMAIL ; do for var in VENDOR PN VERSION RELEASE TYPE CREATOR_TAG CREATOR_NAME CREATOR_EMAIL ; do
@ -318,7 +319,11 @@ write_ini_file() {
# publish custom variables # publish custom variables
for (( i = 0 ; i < ${#OPSI_INI_NAME[@]} ; i++ )) ; do 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]}" $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
done done
echo >>$var_file
} }
################### ###################