Guillaume Rousse wrote: > Ainsi parlait Michael Lothian : >> Everthough of having a file somewhere that has the hostname is? And >> then referencing everything to that file so if something changes >> everything us updated with out reconfiguring anything? > hostname is in /etc/sysconfig/network.
Not for imp. > Technically, what you're proposing is doable. However, i still don't > understand why so much attention for this topic. Are you really changing your > _servers_ hostname everyday, to need such a toy ? It is clearly a waste of > resources for me. No! You've already expent the resources to write the script (in the spec file). All I'm saying is put it in a file and include it with the package like before! > > Moreover, as sysadmin, I hate black magic changing sensible > config stuff behind my back. It's not black magic, and it's not changing anything behind your back. The one in the spec file makes the package work out of the box, and if you included the script with the package, the user would have to explicitly run it. And if they changed their hostname they would not have a "sensible config," it would need to be changed.
