On Tue, Feb 22, 2005 at 01:43:17AM +0100, Jeroen van Wolffelaar wrote: > On Thu, Nov 25, 2004 at 10:42:13AM +0100, Marco Nenciarini wrote: > > I reported same problem installing phpbb2-conf-mysql > > I tried to remove the whole package and mysql and reinstall it, with no > > success. > > The db was created, but it remains empty. > > > > I've attached the output of postinst called with "sh -x", and the dump of db > > (empty). > > Thanks > > > If you need other infos please tell me. > > What shell do you use? Can you do a 'ls -l /bin/sh'? >
I am using dash. I use this pachine for my developements, and i need it to test posix complyance of my scripts. > Reading the last few lines of your log, which are for the record: > > | + which mysql > | + [ -z /usr/bin/mysql ] > | + eval mysql --password='qMMMfumtUgwQ' -u phpbb2 > | + eval mysql --password='qMMMfumtUgwQ' -u phpbb2 -f phpbb2 -e "SELECT * > FROM phpbb_config" > | dpkg: errore processando phpbb2-conf-mysql (--configure): > | il sottoprocesso post-installation script ha restituito un codice di > | errore 1 > > (I hope that mysql root password was a temp one) > I don't have anymore mysql on my test machine. It was only a test :) > I have trouble understanding why this is the end of the postinst, > considering that in /usr/share/wwwconfig-common/mysql-ifnot-exec.sh, > which is where this code is, the following fragment of code corresponds > to this: > > | elif [ -z $(which mysql) ] ; then > | error="No mysql client to execute, install the mysql client package and > | run 'dpkg-reconfigure -plow packagename'." > | elif ! eval $mysqlcmd </dev/null >/dev/null 2>&1 ; then > | error="Error when trying to connect to the mysql database. > | This error can occur if you have no database to connect to, or > | if the password was incorrect. > | use: dpkg-reconfigure -plow packagename to reconfigure." > | elif ! eval $mysqlcmd -f $dbname -e "\"$statement\"" >/dev/null 2>&1 ; then > | log="${log}Executing command to mysql." > | (...) > | else > | status=nothing > | fi > > This should, even though set -e is enabled, NOT result in abortion of shell > execution. > I'll investigate ASAP. Regards -- --------------------------------------------------------------------- | Marco Nenciarini | Debian/GNU Linux Developer - Plug Member | | [EMAIL PROTECTED] | http://www.prato.linux.it/~mnencia | --------------------------------------------------------------------- Key fingerprint = FED9 69C7 9E67 21F5 7D95 5270 6864 730D F095 E5E4
signature.asc
Description: Digital signature