Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132795 - games-fps/enemy-territory upgrade will wipe out /opt/enemy-territory/etmain/server.cfg
Summary: games-fps/enemy-territory upgrade will wipe out /opt/enemy-territory/etmain/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 08:37 UTC by CJ Kucera
Modified: 2006-05-12 11:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CJ Kucera 2006-05-09 08:37:19 UTC
The server.cfg in /opt/enemy-territory/etmain is, as far as I know, the usual place to put things like rcon passwords, and configuration of the various parameters you want on your server.

During the recent upgrade to 2.60b, we discovered that server.cfg (and the other .cfg files in there) aren't under CONFIG_PROTECT, so the upgrade wiped out a bunch of stuff which we had to recreate from an older backup.  I know that you can specify commandline options in /etc/conf.d/et-ded, but that's very cumbersome if you're changing more than a few vars.

Anyway, IMO, server.cfg at least should be under CONFIG_PROTECT, and it would make sense to just do it to *.cfg in that dir.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-09 12:06:09 UTC
Honestly, this is *exactly* why there is the "${dir}/etwolf-homedir" creation during the ebuild phase.  You're supposed to put your server configs there, where they won't be written over.

That being said, you're the second person I've heard this from today, so I'm going to add the standard directories to CONFIG_PROTECT, even though it really is the administrator's job to extend CONFIG_PROTECT to match their installation.  This is  FIXED in CVS with no revision bump.  Enjoy!
Comment 2 CJ Kucera 2006-05-09 12:12:01 UTC
Ah, I had thought that the et-homedir stuff was just so that the server has somewhere to write temporary files and logs, etc.  Maybe it'd be worth it to have some einfo lines in the postinstall to encourage users to put their stuff there?  I suppose it's a moot point since you've already added the CONFIG_PROTECT stuff anyway.

Regardless, thanks!

-CJ
Comment 3 SpanKY gentoo-dev 2006-05-09 17:18:27 UTC
huh ?  what directories are you going to add to CONFIG_PROTECT ?
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-10 07:54:51 UTC
None.  I added /opt/enemy-territory/etmain/*.cfg to CONFIG_PROTECT if USE=dedicated, not any directories.
Comment 5 SpanKY gentoo-dev 2006-05-10 20:07:25 UTC
yeah, except that doesnt work ...
Comment 6 CJ Kucera 2006-05-10 22:46:53 UTC
If CONFIG_PROTECT doesn't work out, I'd think it'd just be enough to mention where to put server files in the postinstall.  I'd have had my stuff in the et-homedir if I had known that's where it should have gone in the first place.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-11 04:41:06 UTC
Bleh... so it doesn't do just files?  I guess I'll have to look into what webapp-config does, then, since I could have sworn it can protect single files.
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-05-12 11:02:21 UTC
Note added... I guess that makes this "fixed" as best as we can, then.