Re: [CentOS] how do I run something on a newly installed server, on it's 1st boot only?

2008-03-29 Thread Rudi Ahlers
Michel van Deventer wrote: Hi, you can use the %post part of the kickstart for that, then your script will run after installation is complete but before the reboot. If you need to run it after the first reboot, I'd put it in /etc/rc.d/rc.local and let it remove itself after running succesfully.

Re: [CentOS] how do I run something on a newly installed server, on it's 1st boot only?

2008-03-29 Thread John R Pierce
Michel van Deventer wrote: Hi, you can use the %post part of the kickstart for that, then your script will run after installation is complete but before the reboot. If you need to run it after the first reboot, I'd put it in /etc/rc.d/rc.local and let it remove itself after running succesfully.

Re: [CentOS] how do I run something on a newly installed server, on it's 1st boot only?

2008-03-29 Thread Michel van Deventer
Hi, you can use the %post part of the kickstart for that, then your script will run after installation is complete but before the reboot. If you need to run it after the first reboot, I'd put it in /etc/rc.d/rc.local and let it remove itself after running succesfully. And of course copy the script

[CentOS] how do I run something on a newly installed server, on it's 1st boot only?

2008-03-29 Thread Rudi Ahlers
Hi all I'm busy with a kickstart file to automate server installations, and I need to run a bash script right after the server has been installed for the first time. But the script only needs to run once, and it needs to run automatically. How do I do that? -- Kind Regards Rudi Ahlers CEO,