Hi,
I have some post installation scripts that I would like to call from
my generic autoyast.xml file. This involves three related questions :
1) One file reads,
# cat ntp.conf.sh
<source>
<![CDATA[
cp -f /etc/ntp.conf /etc/ntp.conf.original.autoyast
cat > /etc/ntp.conf << EOF
server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift/ntp.drift
logfile /var/log/ntp
keys /etc/ntp.keys
trustedkey 1
requestkey 1
server 10.254.26.3 iburst
restrict 10.254.26.2
restrict time.versatel.com
EOF
chmod 640 /etc/ntp.conf
chown root:ntp /etc/ntp.conf
]]>
</source>
How would I reference this in the autoyast.xml script.
2) I would like to create separate package installation XML files that
can be called by autoyast depending on what will be installed. One such
file might read:
# cat postinstall-squid.xml
<software>
<packages config:type="list">
<package>squid</package>
</software>
Where in the autoyast.xml would I call this and how.
3) Finally. if I add the package squid to the list of packages to be
installed, then will autoyast install and add the nessecary user, or
will I have to add the squid user into the postinstall-squid.xml with
something like:
<user>
<encrypted config:type="boolean">true</encrypted>
<fullname>WWW-proxy squid</fullname>
<gid>65534</gid>
<home>/var/cache/squid</home>