Changeset 5132

Show
Ignore:
Timestamp:
10/22/07 09:48:36 (1 year ago)
Author:
p_lindheimer
Message:

change search path for retrieve_conf_post_custom from AMPBIN to AMPLOCALBIN which must be defined

Files:

Legend:

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

    r5031 r5132  
    632632// have bad consequences and can cripple the system. 
    633633// 
    634 $post_custom = $amp_conf['AMPBIN'].'/retrieve_conf_post_custom'; 
    635 if (file_exists($post_custom)) { 
    636         outn(sprintf(_("Found script %s, executing.."), $post_custom)); 
    637         include($post_custom); 
    638         out(_("OK")); 
     634if (isset($amp_conf['AMPLOCALBIN'])) { 
     635$post_custom = $amp_conf['AMPLOCALBIN'].'/retrieve_conf_post_custom'; 
     636        if (file_exists($post_custom)) { 
     637                outn(sprintf(_("Found script %s, executing.."), $post_custom)); 
     638                include($post_custom); 
     639                out(_("OK")); 
     640        } 
    639641} 
    640642