Changeset 727
- Timestamp:
- 10/27/05 15:47:07 (8 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/AMP-1-10-010/AMP/install_amp
r708 r727 420 420 421 421 do { 422 out n("Enter the path to use for your AMP web root:\n [/var/www/html] ");422 out("Enter the path to use for your AMP web root:\n [/var/www/html] "); 423 423 $key = trim(fgets(STDIN,1024)); 424 424 if (preg_match('/^$/',$key)) $amp_conf["AMPWEBROOT"] = "/var/www/html"; … … 427 427 break; 428 428 } else if (mkdir($amp_conf["AMPWEBROOT"],755)){ 429 out n("Created ".$amp_conf["AMPWEBROOT"]);429 out("Created ".$amp_conf["AMPWEBROOT"]); 430 430 break; 431 431 } else { … … 435 435 436 436 do { 437 out n("Enter the path to use for your FOP web root:\n [/var/www/html/panel] ");437 out("Enter the path to use for your FOP web root:\n [/var/www/html/panel] "); 438 438 $key = trim(fgets(STDIN,1024)); 439 439 if (preg_match('/^$/',$key)) $amp_conf["FOPWEBROOT"] = "/var/www/html/panel"; … … 442 442 break; 443 443 } else if (mkdir($amp_conf["FOPWEBROOT"],755)){ 444 out n("Created ".$amp_conf["FOPWEBROOT"]);444 out("Created ".$amp_conf["FOPWEBROOT"]); 445 445 break; 446 446 } else { … … 474 474 475 475 do { 476 out n("Enter directory in which to store AMP executable scripts:\n [/var/lib/asterisk/bin] ");476 out("Enter directory in which to store AMP executable scripts:\n [/var/lib/asterisk/bin] "); 477 477 $key = trim(fgets(STDIN,1024)); 478 478 if (preg_match('/^$/',$key)) $amp_conf["AMPBIN"] = "/var/lib/asterisk/bin"; … … 481 481 break; 482 482 } else if (mkdir($amp_conf["AMPBIN"],755)){ 483 out n("Created ".$amp_conf["AMPBIN"]);483 out("Created ".$amp_conf["AMPBIN"]); 484 484 break; 485 485 } else { … … 489 489 490 490 do { 491 out n("Enter directory in which to store super-user scripts:\n [/usr/sbin] ");491 out("Enter directory in which to store super-user scripts:\n [/usr/sbin] "); 492 492 $key = trim(fgets(STDIN,1024)); 493 493 if (preg_match('/^$/',$key)) $amp_conf["AMPSBIN"] = "/usr/sbin"; … … 496 496 break; 497 497 } else if (mkdir($amp_conf["AMPSBIN"],755)){ 498 out n("Created ".$amp_conf["AMPSBIN"]);498 out("Created ".$amp_conf["AMPSBIN"]); 499 499 break; 500 500 } else { … … 637 637 } 638 638 639 // **** Check for amportal.conf, create if necessary 640 641 outn("Checking for ".ASTERISK_CONF.".."); 642 if (!file_exists(ASTERISK_CONF)) { 643 out(ASTERISK_CONF." does not exist, copying default"); 644 copy("asterisk.conf", "/etc/asterisk/asterisk.conf"); 645 //TODO - need to prompt for asterisk specific directories - using * defaults for now 646 //collect_ast_settings(ASTERISK_CONF, $dbhost, $new_username, $new_password); 647 } 648 out("OK"); 649 639 650 // **** read asterisk.conf 640 651
