hash=`git log -n 1 --pretty=format:%h`
./configure -C --prefix="/usr/local/freeradius-$hash" --enable-developer
if ! sudo make install; then
exit 1;
sudo rm /usr/local/freeradius
sudo ln -s "/usr/local/freeradius-$hash" /usr/local/freeradius
# Bootstrap configuration directory
if [ ! -d "/usr/local/etc/raddb" ]; then
if [ ! -d /usr/local/etc ]; then
sudo mkdir /usr/local/etc/
sudo cp -ra /usr/local/freeradius-$hash/etc/raddb /usr/local/etc/
sudo rm -rf /usr/local/freeradius/etc/raddb
sudo ln -s /usr/local/etc/raddb /usr/local/freeradius/etc/raddb
sudo service radiusd restart
Which is what I use to deploy GIT versions on production servers. It allows you to quickly fail back to a previous version if there are issues.
This negates problems caused by installing over the top of a previous installation, which IMHO is always an extremely bad idea with any unpackaged software.
-Arran