King, Richard (CE1 UNIX Admin) wrote:
SuSE: 10.1
Hello All!
I've been trying to run 2 post-scripts, and it appears they are not working. I'll I am trying to is modify 2 files, /etc/passwd & /etc/shadow.
This is what I have in the autoyast file:
<scripts> <post-scripts config:type="list"> <script> <debug config:type="boolean">false</debug> <feedback config:type="boolean">false</feedback> <filename>nispasswd</filename> <interpreter>shell</interpreter> <location></location>
false <source><![CDATA[cat /etc/passwd | sed 's/+::::::/+::0:0:::/g'] >> /etc/passwd.tmp mv /etc/passwd.tmp /etc/passwd ]]></source> </script> <script> <debug config:type="boolean">false</debug> <feedback config:type="boolean">false</feedback> <filename>nisshadow</filename> <interpreter>shell</interpreter> <location></location>false <source>/etc/shadow.tmp mv /etc/shadow.tmp /etc/shadow ]]></source> </script> </post-scripts> </scripts>
As you can see, I am just trying to edit the passwd & shadow files. These scripts are within the <profile></profile> tags. Can someone help me understand why these post scripts are not working? Is there a better way to edit these files?
Try using init scripts instead, i.e. replace <post-scripts> with <init-scripts> /Lars Stavholm -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org