Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346417 - net-analyzer/cacti-0.8.7g upgrade + webappconfig -U = include/config.php paved over
Summary: net-analyzer/cacti-0.8.7g upgrade + webappconfig -U = include/config.php pave...
Status: RESOLVED DUPLICATE of bug 243260
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-22 09:33 UTC by Jesse Adelman
Modified: 2010-11-24 11:48 UTC (History)
1 user (show)

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 Jesse Adelman 2010-11-22 09:33:01 UTC
I just version bumped from 0.8.7e to 0.8.7g, and lo and behold my include/config.php (which is what Cacti uses for mysql connection info) was wiped and replaced with upstream's. No prompts to run etc-update.

I can't repeat it, because, foolishly, I didn't backup the cacti directory before upgrading with webapp-config.

I hope this is just a local issues, somehow, or everyone who does this upgrade path (which is what I've done for all previous Cacti releases going back many years) will have the same grief.

I ran:

webapp-config -U -d cacti cacti 0.8.7g

Here's the session info:

mythtvbox ~ # webapp-config -U -d cacti cacti 0.8.7g
* Upgrading cacti-0.8.7e-r2 to cacti-0.8.7g
*   Installed by root on 2010-07-18 12:22:04
*   Config files owned by 0:0
/usr/lib/python2.6/site-packages/WebappConfig/content.py:27: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5, re, os, os.path
!time log/cacti.log
!empty resource/snmp_queries
!empty resource
!empty scripts
!empty log
!empty rra
--- /var/www/localhost/htdocs/cacti
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*   Files and directories installed
* Install completed - success
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-24 01:42:15 UTC
We could add a CONFIG_PROTECT entry in /etc/env.d/ ...
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-11-24 11:48:54 UTC
Jeroen, it's impossible due to nature of webapp-config.

*** This bug has been marked as a duplicate of bug 243260 ***