Summary: | phpmyadmin 'config.inc.php' is not protected | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ernst May-Jung <mailing> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | minor | CC: | mholzer |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Ernst May-Jung
2004-03-18 10:45:20 UTC
pkg_postinst() { einfo einfo "To complete installation, you must" einfo "1. Update your configuration files:" einfo " etc-update" einfo "2. Update MySQL's grant tables and the pmadb database:" einfo " ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" einfo "3. Reload MySQL:" einfo " /etc/init.d/mysql restart" einfo einfo "If you are upgrading from an earlier version and are using phpMyA dmin's" einfo "features for master/foreign tables be sure to read" einfo " http://localhost/phpmyadmin/Documentation.html#col_com" einfo "You will need to perform the ALTER TABLE step yourself." einfo einfo "Finally, point your browser to http://localhost/phpmyadmin/." einfo } pkg_config() { einfo "This will execute the contents of ${ROOT}etc/phpmyadmin/mysql-set up.sql" einfo "Type in your MySQL root password:" mysql -u root -p < ${ROOT}etc/phpmyadmin/mysql-setup.sql || die einfo "You need to reload MySQL for the changes to take effect" } how about reading the einfo msgs ? Not having such files overwritten is what gentoo's config-file-protection is all about, I don't see why it isn't used here. Maybe this is rather a feature-request than a real bug, but not having to reconfigure PHPMyAdmin after every update is a valid request IMHO. This won't be a problem once phpmyadmin's ebuild uses the new webapp-config approach. webapp-config provides CONFIG_PROTECT behaviour for the configuration files of web-based applications. Best regards, Stu |