Changeset 2742
- Timestamp:
- 10/16/06 12:17:14 (7 years ago)
- Files:
-
- freepbx/trunk/amp_conf/bin/retrieve_conf (modified) (4 diffs)
- freepbx/trunk/install_amp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/bin/retrieve_conf
r2728 r2742 98 98 99 99 $shortopts = "h?u:p:"; 100 $longopts = array("help","debug","dry-run" );100 $longopts = array("help","debug","dry-run","run-install"); 101 101 102 102 $args = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), $shortopts, $longopts); … … 109 109 $debug = false; 110 110 $dryrun = false; 111 $run_install = false; 111 112 112 113 foreach ($args[0] as $arg) { … … 123 124 $debug = true; 124 125 debug("Debug mode enabled"); 126 break; 127 case "--run-install": 128 $run_install = true; 129 out("Running module install.php and install.sql scripts"); 125 130 break; 126 131 } … … 237 242 if (isset($module['status']) && $module['status'] == MODULE_STATUS_ENABLED) { 238 243 // Make sure the module is installed and up to date 239 module_install($key);244 if ($run_install) module_install($key); 240 245 // active_modules array used in genConf function 241 246 $active_modules[] = $key; freepbx/trunk/install_amp
r2713 r2742 431 431 out("Generating Configurations.conf.."); 432 432 if (!$dryrun) 433 passthru("su - asterisk -c \"".trim($amp_conf["AMPBIN"])."/retrieve_conf ".($debug ? ' --debug' : '').'"'); 433 // added --run-install to make it work like it has been working since retrieve_conf changed to not run module install scripts by default 434 passthru("su - asterisk -c \"".trim($amp_conf["AMPBIN"])."/retrieve_conf --run-install ".($debug ? ' --debug' : '').'"'); 434 435 } 435 436
