<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 9 Sep 2013, at 14:24, Alan DeKok <<a href="mailto:aland@deployingradius.com">aland@deployingradius.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Stefan Winter wrote:<br><blockquote type="cite">The idea is that make install is not supposed to touch my production<br>config in any way. I don't want it to generously add directories without<br>me knowing.<br></blockquote></blockquote><div><br></div><div>There's also:</div><div><br></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>#!/bin/sh</div></div><div><div>make clean</div></div><div><div>if ! git pull; then</div></div><div><div> exit 1;</div></div><div><div>fi</div></div><div><div>hash=`git log -n 1 --pretty=format:%h`</div></div><div><div>./configure -C --prefix="/usr/local/freeradius-$hash" --enable-developer</div></div><div><div>make -j8</div></div><div><div>if ! sudo make install; then<span class="Apple-tab-span" style="white-space: pre; "> </span></div></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>exit 1;</div><div><div>fi</div></div><div><div><br></div></div><div><div>sudo rm /usr/local/freeradius</div></div><div><div>sudo ln -s "/usr/local/freeradius-$hash" /usr/local/freeradius</div></div><div><div><br></div></div><div><div># Bootstrap configuration directory</div></div><div><div>if [ ! -d "/usr/local/etc/raddb" ]; then</div></div><div><div> if [ ! -d /usr/local/etc ]; then</div></div><div><div> sudo mkdir /usr/local/etc/</div></div><div><div> fi</div></div><div><div><br></div></div><div><div> sudo cp -ra /usr/local/freeradius-$hash/etc/raddb /usr/local/etc/</div></div><div><div>fi</div></div><div><div><br></div></div><div><div>sudo rm -rf /usr/local/freeradius/etc/raddb</div></div><div><div>sudo ln -s /usr/local/etc/raddb /usr/local/freeradius/etc/raddb</div></div><div><div>sudo service radiusd restart</div></div></blockquote><div><div><br></div><div>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.</div><div>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.</div><div><br></div><div>-Arran</div><div><br></div></div><div apple-content-edited="true">Arran Cudbard-Bell <<a href="mailto:a.cudbardb@freeradius.org">a.cudbardb@freeradius.org</a>><br>FreeRADIUS Development Team<br></div><br></body></html>