(Mar 07 2005 13:19) Alain Fauconnet wrote:
> Hello list,
> 
> I've encountered what looks to me like strange behaviour when
> upgrading the Apache package under Trustix 2.1. The
> /home/httpd/html/index.html file, which I had obviously altered from
> the default installed page, has been renamed to index.html.rpmsave and
> the newly installed one has been installed as index.html.rpmnew. So after
> the upgrade, I didn't have any index.html file at all anymore.

This should not happen.

The specific case you describe sounds very strange, and more of what one
might expect after:

1: package upgrade (index.html.rpmnew file added index.html still there)
2: package removal (index.html backed up to index.html.rpmsave)


Might I ask what version the package was originally and what it became?
You should be able to find that information in the swup logs under /var
/log/swup. The reason I ask is that this might be due to some specific
issues with very old packages, or the information will at least help me
investigate further.

> I'm fairly new to Trustix and the wonderful world of RPM-packaged Unices
> (my background is more *BSD and do-it-yourself-from-source upgrades).
> Is this expected behaviour? I'd accept it for binaries, but for
> modifiable files like index.html I find this a bit intrusive.

index.html is marked to be a config file, thus it will not be changed
during upgrade. That's why you get the .rpmnew file, which is 100%
correct behaviour.

The .rpmsave file is what you get when the package is removed, but you
had made changes to the config file when it was available. It is a
backup of the changed file.

> Any way I can convinced swup to leave edited files alone?

Swup does not handle files, it handles packages. The files are handled
by the package, thus rpm is the place to look. I do not think rpm has
functionality for letting the user 'hold' specific files, but as I said,
this should not be needed as the packages have such features internally.

> Thanks for any tip,

At least check the contents of index.html.rpmsave, it should be the
correct one with your changes. (However, since the whole situation seems
very strange I cannot tell for sure.) Also check that apache still is
installed, and maybe verify the installation:
rpm -V apache (will give output on files that have changed since
installation.)


kind regards


c

-- 
Christian Haugan Toldnes
Software Engineer
Trustix Secure Linux Development
Office Tel Europe: +44 (0) 161 8747070
Office Tel US: +1 888 COMODO 1  (1 888 266 6361)
Fax Europe: +44 (0) 161 8771767
Fax US: +1 201 963 9003
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
sender by replying to the e-mail containing this attachment. Replies to
this email may be monitored by Comodo for operational or business
reasons. Whilst every endeavour is taken to ensure that e-mails are free
from viruses, no liability can be accepted and the recipient is
requested to use their own virus checking software.
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to