There's a problem in opensips when you're using mysql as the database
and you have no postgres installed. Adding a condition solves the
problem.

Cheers
--- /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";

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to