- Timestamp:
- May 16, 2009, 1:03:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/deploy/bin/phpbb
r476 r1129 2 2 use strict; 3 3 use lib '/mit/scripts/deploy/bin'; 4 use onserver ;4 use onserver_star; 5 5 use File::Path; 6 6 7 7 setup(); 8 8 9 fetch_uri( 10 'install/install.php', 11 {}, 12 {lang => 'english', 13 dbms => 'mysql4', 14 upgrade => 0, 15 dbhost => $sqlhost, 16 dbuser => $sqluser, 17 dbname => $sqldb, 18 dbpasswd => $sqlpass, 19 prefix => '', 20 board_email => $email, 21 server_name => $server, 22 server_port => 80, 23 script_path => "/~$USER/$addrend/", 24 admin_name => $admin_username, 25 admin_pass1 => $admin_password, 26 admin_pass2 => $admin_password, 27 install_step => 1, 28 cur_lang => 'english'}); 29 30 rmtree(['contrib', 'install']); 9 # Initial installation page 10 fetch_uri( 11 'install/index.php', 12 {mode => 'install', 13 language => 'en'}, 14 {}); 15 print "Loaded initial installation page\n"; 16 17 # Requirements page 18 fetch_uri( 19 'install/index.php', 20 {mode => 'install', 21 sub => 'requirements', 22 language => 'en'}, 23 {}); 24 print "Loaded requirements page\n"; 25 26 # Database page 27 fetch_uri( 28 'install/index.php', 29 {mode => 'install', 30 sub => 'database', 31 language => 'en'}, 32 {img_imagick => '/usr/bin/'}); 33 print "Loaded database page\n"; 34 35 # Database again 36 fetch_uri( 37 'install/index.php', 38 {mode => 'install', 39 sub => 'database'}, 40 {dbms => 'mysql', 41 dbhost => $sqlhost, 42 dbname => $sqldb, 43 dbuser => $sqluser, 44 dbpasswd => $sqlpass, 45 table_prefix => '', 46 img_imagick => '/usr/bin/', 47 language => 'en', 48 testdb => 'true'}); 49 print "Loaded database page (part 2)\n"; 50 51 # Administrator page 52 fetch_uri( 53 'install/index.php', 54 {mode => 'install', 55 sub => 'administrator'}, 56 {img_imagick => '/usr/bin/', 57 language => 'en', 58 dbms => 'mysql', 59 dbhost => $sqlhost, 60 dbport => '', 61 dbname => $sqldb, 62 dbuser => $sqluser, 63 dbpasswd => $sqlpass, 64 table_prefix => ''}); 65 print "Loaded administrator page\n"; 66 67 # Administrator page again 68 fetch_uri( 69 'install/index.php', 70 {mode => 'install', 71 sub => 'administrator'}, 72 {default_lang => 'en', 73 admin_name => $admin_username, 74 admin_pass1 => $admin_password, 75 admin_pass2 => $admin_password, 76 board_email1 => $email, 77 board_email2 => $email, 78 img_imagick => '/usr/bin/', 79 language => 'en', 80 dbms => 'mysql', 81 dbhost => $sqlhost, 82 dbport => '', 83 dbname => $sqldb, 84 dbuser => $sqluser, 85 dbpasswd => $sqlpass, 86 table_prefix => '', 87 check => 'true'}); 88 print "Loaded administrator page (part 2)\n"; 89 90 # Config file page 91 fetch_uri( 92 'install/index.php', 93 {mode => 'install', 94 sub => 'config_file'}, 95 {img_imagick => '/usr/bin/', 96 default_lang => 'en', 97 admin_name => $admin_username, 98 admin_pass1 => $admin_password, 99 admin_pass2 => $admin_password, 100 board_email1 => $email, 101 board_email2 => $email, 102 language => 'en', 103 dbms => 'mysql', 104 dbhost => $sqlhost, 105 dbport => '', 106 dbname => $sqldb, 107 dbuser => $sqluser, 108 dbpasswd => $sqlpass, 109 table_prefix => ''}); 110 print "Loaded config file page\n"; 111 112 # Advanced page 113 fetch_uri( 114 'install/index.php', 115 {mode => 'install', 116 sub => 'advanced'}, 117 {img_imagick => '/usr/bin/', 118 language => 'en', 119 dbms => 'mysql', 120 dbhost => $sqlhost, 121 dbport => '', 122 dbname => $sqldb, 123 dbuser => $sqluser, 124 dbpasswd => $sqlpass, 125 table_prefix => '', 126 default_lang => 'en', 127 admin_name => $admin_username, 128 admin_pass1 => $admin_password, 129 admin_pass2 => $admin_password, 130 board_email1 => $email, 131 board_email2 => $email}); 132 print "Loaded advanced setup page\n"; 133 134 # Create database tables 135 fetch_uri( 136 'install/index.php', 137 {mode => 'install', 138 sub => 'create_table'}, 139 {email_enable => '1', 140 smtp_delivery => '0', 141 smtp_auth => 'PLAIN', 142 cookie_secure => '0', 143 force_server_vars => '0', 144 server_protocol => 'http://', 145 server_name => "$USER.scripts.mit.edu", 146 server_port => '80', 147 script_path => "/$addrend", 148 img_imagick => '/usr/bin/', 149 language => 'en', 150 dbms => 'mysql', 151 dbhost => $sqlhost, 152 dbport => '', 153 dbname => $sqldb, 154 dbuser => $sqluser, 155 dbpasswd => $sqlpass, 156 table_prefix => '', 157 default_lang => 'en', 158 admin_name => $admin_username, 159 admin_pass1 => $admin_password, 160 admin_pass2 => $admin_password, 161 board_email1 => $email, 162 board_email2 => $email}); 163 print "Loaded database table creation page\n"; 164 165 # Final page 166 fetch_uri( 167 'install/index.php', 168 {mode => 'install', 169 sub => 'final'}, 170 {language => 'en', 171 dbms => 'mysql', 172 dbhost => $sqlhost, 173 dbport => '', 174 dbuser => $sqluser, 175 dbpasswd => $sqlpass, 176 dbname => $sqldb, 177 table_prefix => '', 178 default_lang => 'en', 179 admin_name => $admin_username, 180 admin_pass1 => $admin_password, 181 admin_pass2 => $admin_password, 182 board_email1 => $email, 183 board_email2 => $email, 184 img_imagick => '/usr/bin/', 185 ftp_path => '', 186 ftp_user => '', 187 ftp_pass => '', 188 email_enable => '1', 189 smtp_delivery => '0', 190 smtp_host => '', 191 smtp_auth => 'PLAIN', 192 smtp_user => '', 193 smtp_pass => '', 194 cookie_secure => '0', 195 force_server_vars => '0', 196 server_protocol => 'http://', 197 server_name => "$USER.scripts.mit.edu", 198 server_port => '80', 199 script_path => "/$addrend"}); 200 print "Loaded installation finalization page\n"; 201 202 rmtree(['install']);
Note: See TracChangeset
for help on using the changeset viewer.