Re: Running setup scripts in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I need to do anything substantial post install, I have %post arrange for it to happen on first boot (usually with a one-time cronjob).

example:

%post
cat >/root/myscript <<"ENDOFSCRIPT"
#!/bin/bash
rm -f /etc/cron.d/myscript
sleep 60
#
#put whatever you want here
#
ENDOFSCRIPT

cat >/etc/cron.d/myscript <<"ENDOFCRON"
* * * * * root /bin/bash /root/myscript
ENDOFCRON


Raymond, Jeff wrote:
Hello,

    I am trying to install OpenOffice during the post setup.  There is a a simple script to do it.  It is just a shell script but the .install script is not running during the post phase.  I tried using the --interpreter swith with /usr/bin/bash as the shell but that does not work either does any one know how to make a shell script run in Post?

Thanks
Jeff



_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/kickstart-list






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux