<br><div class="gmail_quote">On Mon, Jan 4, 2010 at 13:23, John McCabe-Dansted <span dir="ltr"><<a href="mailto:gmatht@gmail.com">gmatht@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Mon, Jan 4, 2010 at 10:47 PM, Soren Hansen <<a href="mailto:soren@ubuntu.com">soren@ubuntu.com</a>> wrote:<br>
> If a package upgrade includes a change to a conffile (a configuration<br>
> file managed by dpkg) compared to the version installed by the old<br>
> version of the package, and you have made changes to said conffile, you<br>
> will be prompted about these changes. If, however, something else (e.g.<br>
> webmin) has made these changes on your behalf, you will be prompted<br>
> about changes you have not made to a conffile you likely have never<br>
> heard of. I'm just saying that this is not acceptable, which is a major<br>
<br>
</div>In principle it seems trivial for webmin etc. to keep a log of what it<br>
changes and why, and add hooks for these changes to be automatically<br>
reapplied upon update. This would seem vastly better than the current<br>
situation where the whole upgrade process stops in the middle to wait<br>
for user input if a config file has been changed. It'd be nice if we<br>
could just leave an upgrade running overnight and have a fully<br>
functional system when we wake up in the morning. It'd also be nice to<br>
be able to take the log of all changes made to the system, edit it,<br>
and then replay it on another freshly installed system. IMHO all<br>
changes should be done by some "automated system", even if it is just<br>
a script that does<br>
cp ; vi ; diff ; sudo patch<br>
<br clear="all"></blockquote></div><br>*IF* every package had a way to separate the *default* configuration values from the *local* changes then things would be MUCH easier.<br><br>Without this the only way to avoid bothering the user with these prompts would involve calling a "pre-upgrade" script in such a way that Webmin (or any other such "user friendly control panel" system) could actually "revert" the local changes it did, so the package system would simply upgrade the config without a hitch. After the upgrade the user would (perhaps manually) reapply the patches back. But even this doesn't solve all isues. For example, if a default values changes from version to version (as it does frequently) then it may be necessary to "patch the patch" before applying it back!<br>
<br>That's part of the problem - each package is different. It's nearly impossible to devise a single standard way to manage configuration changes.<br><br>-- <br>Carlos Ribeiro<br>Consultoria em Projetos<br>twitter: <a href="http://twitter.com/carribeiro">http://twitter.com/carribeiro</a><br>
blog: <a href="http://rascunhosrotos.blogspot.com">http://rascunhosrotos.blogspot.com</a><br>mail: <a href="mailto:carribeiro@gmail.com">carribeiro@gmail.com</a><br>