On 02/06/2014 12:18, Fajar A. Nugraha wrote:
The above might not be your main concern (since you've got it fixed), but I wonder where did you get the RPM from. The bundled suse specfile has
%config(noreplace) %{_sysconfdir}/raddb/*
which, in theory, should leave your config files alone.
If you got the RPM from suse, then you should file a bug to them.
I built the RPM using the openSUSE Build Service from the freeradius.spec file included within the freeradius-server-2.2.5.tar.bz2 file. What I didn't spot was that files in /etc/raddb/sites-available would be overwritten when installing the later RPM courtesy of %attr(640,root,radiusd) %{_sysconfdir}/raddb/sites-available/* whereas files in /etc/raddb/sites-enabled/ are not %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sites-enabled/* The difference being the absence/presence of "%config(noreplace)". Checking the latest freeradius.spec for SUSE @ https://raw.githubusercontent.com/FreeRADIUS/freeradius-server/v2.x.x/suse/f... shows this is still the case. The "%config(noreplace) %{_sysconfdir}/raddb/*" line you reference above would appear to be from the freeradius.spec for SUSE included with FreeRADIUS 3.0.x - we're using 2.2.5. Simon -- Simon Flood, Senior Systems Specialist, University Information Services, University of Cambridge