Hi
I'm building a deployment bundle of a server and want to automate some tasks.
e.g. openvpn has a dependency on lzo, so there is a sequence to building all this stuff.
So, Package lzo, requires
./configure
make
make install
How do I script up:
Code:
#!/bin/bash
function do_package
{
if (configure == successful) then
if (make == successful) then
if (make install == successful) then return true;
fi
fi
fi
return false
}
cd $PACKAGE_LZO
if (do_package == true)
{
cd $PACKAGE_OPENVPN
if (do_package == true) then .........
}
I also scanned the forum and saw something about Kickstart.. any suggestions? All my servers will be centos5 clones and I can't use a xen/image.
Many thanks for any tips and advice.
Kevin]