Changeset 6859

Show
Ignore:
Timestamp:
09/26/08 22:19:05 (2 months ago)
Author:
p_lindheimer
Message:

error not fail if retrieve_op_conf_from_mysql.pl can't be executed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.5/amp_conf/bin/retrieve_conf

    r6764 r6859  
    722722if(!$amp_conf['FOPDISABLE'])  { 
    723723        $script = $amp_conf['AMPBIN'].'/retrieve_op_conf_from_mysql.pl '.$amportalconf.' '.rtrim($asterisk_conf['astetcdir'],DIRECTORY_SEPARATOR); 
    724         exec($script, $output, $ret); 
    725         if ($ret) { 
    726                 fatal(sprintf(_("retrieve_op_conf_from_mysql.pl returned with an error code %s"),$ret)); 
     724        if (is_executable($script)) { 
     725                exec($script, $output, $ret); 
     726                if ($ret) { 
     727                        error(sprintf(_("retrieve_op_conf_from_mysql.pl returned with an error code %s"),$ret)); 
     728                } 
     729        } else { 
     730                error(_("retrieve_op_conf_from_mysql.pl does not exist or is not executable")); 
    727731        } 
    728732} 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads