--- /tmp/osipsconsole   2009-01-02 14:20:13.000000000 +0100
+++ /usr/sbin/osipsconsole      2009-01-02 14:24:57.000000000 +0100
@@ -593,7 +593,7 @@
 ##### ----------------------------------------------- #####
 ### binaries
 {
-       if ( $MYSQL eq "" ) {
+       if ( ($DBENGINE eq "mysql") &&  ( $MYSQL eq "" ) ) {
                &locate_tool('mysql');
                if ( !-e $TOOLPATH ) {
                        print "Error: 'mysql' tool not found: set MYSQL variable to correct tool path";
@@ -605,7 +605,7 @@
 
 ##### ----------------------------------------------- #####
 ### binaries
-if ($PGSQL eq "" ) {
+if ( ($DBENGINE eq "Pg") && ($PGSQL eq "" ) ) {
        &locate_tool('psql');
        if ( !-e $TOOLPATH ) {
                print "Error: 'psql' tool not found: set PGSQL variable to correct tool path\n";

