Hi List,
I had problems creating config-files in this way
(either my syntax is wrong, or it's a bug):
(Remark: Between <configure> and </configure> is more stuff
of course, which *did* work - I snipped that in my examples.
The xml itself is correct, says tidy -e -xml .)
----start-extract-from-NON-working-configuration-xml--
<configure>
<files config:type="list" >
<listentry>
/etc/zzzz-config-file-creation-test
<![CDATA[
#####
# /etc/zzzz-config-file-creation-test
# test config file
#####
# test, whether autoyast can add complete config files
# xml-tree: configure->files->listentry->config_file->file-contents
]]>
</listentry>
</files>
<configure>
----stop-extract-from-NON-working-configuration-xml--
I expected to find a file named
"/etc/zzzz-config-file-creation-test"
on the new-installed box but found nothing like this
in /etc or anywhere else.
My workaround (this does work - at least on my box):
----start-extract-from-WORKING-configuration-xml--
<configure>
<post-scripts config:type="list" >
<script>
<filename>create-file-workaround</filename>
<interpreter>shell</interpreter>
<source><![CDATA[
cat << __END__ > /etc/zzzz-config-file-creation-test-workaround
############
# /etc/zzzz-config-file-creation-test-workaround
# this file is complete nonsense and can be deleted
############
123
456
# file created with shell script and "here document"
# xml-tree configure->post-scripts->script->source
__END__
]]>
</source>
</script>
</post-scripts>
</configure>
----stop-extract-from-WORKING-configuration-xml--
A file named /etc/zzzz-config-file-creation-test-workaround
was created and filled.
So, did I do something wrong in the upper example
or can somebody verify this problem?
Best regards,
Hella
-- -- -- -- --
hella breitkopf, unix + network administrator
varetis AG , munich