How to use post installation BASH scripts

When provisioning your baremetal server you have the option on UNIX operating systems to inject a BASH script into the process which is then executed after the base operating system has been successfully installed. You can use this to install software, update the server or apply patches.

Below is an example post installation BASH script for CentOS 6-7

yum -y update
yum -y upgrade

#set allowed DNS IPs
echo "nameserver" >> /etc/resolv.conf
echo "nameserver" >> /etc/resolv.conf
chattr +i /etc/resolv.conf

Still need help? Open a support ticket

Got any questions? Contact us today.