<br><div class="gmail_quote">On Mon, Jan 4, 2010 at 13:23, John McCabe-Dansted <span dir="ltr">&lt;<a href="mailto:gmatht@gmail.com">gmatht@gmail.com</a>&gt;</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 &lt;<a href="mailto:soren@ubuntu.com">soren@ubuntu.com</a>&gt; wrote:<br>
&gt; If a package upgrade includes a change to a conffile (a configuration<br>
&gt; file managed by dpkg) compared to the version installed by the old<br>
&gt; version of the package, and you have made changes to said conffile, you<br>
&gt; will be prompted about these changes. If, however, something else (e.g.<br>
&gt; webmin) has made these changes on your behalf, you will be prompted<br>
&gt; about changes you have not made to a conffile you likely have never<br>
&gt; heard of. I&#39;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&#39;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&#39;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 &quot;automated system&quot;, 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 &quot;pre-upgrade&quot; script in such a way that Webmin (or any other such &quot;user friendly control panel&quot; system) could actually &quot;revert&quot; 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&#39;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 &quot;patch the patch&quot; before applying it back!<br>

<br>That&#39;s part of the problem - each package is different. It&#39;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>