- Timestamp:
- 06/21/08 18:15:43 (7 months ago)
- Location:
- branches/new-install-process
- Files:
-
- 2 modified
-
SETUP (modified) (1 diff)
-
bin/openguides-install (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/new-install-process/SETUP
r1169 r1171 174 174 175 175 Give the full address needed to access the installation directory with 176 a web browser - for example http://london.openguides.org/ 176 a web browser, including the "http://" prefix - for example, 177 http://london.openguides.org/ 177 178 178 179 -
branches/new-install-process/bin/openguides-install
r1158 r1171 79 79 } 80 80 81 # The database setup script.82 my $setup = find_script( "wiki-toolkit-setupdb" );83 84 81 my $force; 85 82 GetOptions('force' => \$force); … … 116 113 content_above_navbar_in_html show_gmap_in_node_display force_wgs84 117 114 send_moderation_notifications); 115 116 my %blank_ok = map { $_ => 1 } 117 qw( dbpass dbhost ); 118 118 119 119 my $skip_config = $force ? 'y' … … 167 167 ); 168 168 eval "require $drivers{$dbtype}"; 169 warn "$drivers{$dbtype} is needed to run a $dbtype database" if $@; 169 die "\nSorry; $drivers{$dbtype} is needed to run a $dbtype database - please " 170 . "install this\nmodule and try again.\n\n" if $@; 170 171 171 172 push @answers, { question => $dbtype_qu, … … 206 207 my $q_method = $var . "__qu"; 207 208 my $qu = $existing_config->$q_method; 208 my $type = $yn_vars{$var} ? "y_n" : "";209 209 my $def = $existing_config->$var || ""; 210 210 my $val = $def; … … 212 212 # Override dbname question for SQLite only. 213 213 if ( $dbtype eq "sqlite" and $var eq "dbname" ) { 214 $qu = " what's the full filename of the SQLite database this site runs on?";214 $qu = "What's the full filename of the SQLite database this site runs on?"; 215 215 } 216 216 … … 323 323 # Here is where we actually ask the questions. 324 324 unless ( $skip_config ) { 325 if ( $type eq "y_n" ) { 325 print $var . "\n"; 326 if ( $yn_vars{$var} ) { 326 327 # may be stored as true/false integer value 327 328 if ( $def =~ /^\d+$/ ) { … … 329 330 } 330 331 $val = prompt( "y", $qu, "y or n", $def ); 332 } elsif ( $blank_ok{$var} ) { 333 print "boo!\n"; 334 $val = prompt( "s", $qu, "optional", $def, 335 sub { print "hello!\n"; return 1; } ); 331 336 } else { 332 337 $val = prompt( "x", $qu, "", $def );
