Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280397 - www-apps/wordpress-2.8.3 (and earlier) ebuild overwrites wp-config.php on each update
Summary: www-apps/wordpress-2.8.3 (and earlier) ebuild overwrites wp-config.php on eac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 03:48 UTC by Patrick
Modified: 2009-12-31 10:56 UTC (History)
0 users

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


Attachments
check if there is a wp-config.php already (wordpress-ebuild.patch,349 bytes, patch)
2009-08-05 03:49 UTC, Patrick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick 2009-08-05 03:48:15 UTC
Wouldn't it be better to check if there is an wp-config.php already, and only do the 'cp wp-config-sample.php wp-config.php' in case there isn't?

Reproducible: Always

Steps to Reproduce:
1. emerge -u wordpress
2. webapp-config -U wordpress -h some_vhost -d some_directory 2.8.3


Actual Results:  
some_vhost/some_directory/wp-config.php gets overwritten with wp-config-sample.php - the WordPress instance at that location is now useless. wp-config.php has to be adapted again, or has to be restored from backup.

Expected Results:  
wp-config.php does not get overwritten
Comment 1 Patrick 2009-08-05 03:49:30 UTC
Created attachment 200225 [details, diff]
check if there is a wp-config.php already
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-12-31 10:56:56 UTC
Fixed in 2.9.