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
Created attachment 200225 [details, diff] check if there is a wp-config.php already
Fixed in 2.9.