- Timestamp:
- Oct 13, 2007, 10:18:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/deploy/bin/onserver.pm
r456 r462 60 60 print "\nCreating SQL database for $sname...\n"; 61 61 62 my $getpwd= `/mit/scripts/sql/bin$scriptsdev/get-password`;62 my $getpwd=system("/mit/scripts/sql/bin$scriptsdev/get-password"); 63 63 ($sqlhost, $sqluser, $sqlpass) = split(/\s/, $getpwd); 64 64 65 $sqldb= `/mit/scripts/sql/bin$scriptsdev/get-next-database "$addrlast"`;66 $sqldb= `/mit/scripts/sql/bin$scriptsdev/create-database "$sqldb"`;65 $sqldb=system("/mit/scripts/sql/bin$scriptsdev/get-next-database", $addrlast); 66 $sqldb=system("/mit/scripts/sql/bin$scriptsdev/create-database", $sqldb); 67 67 if($sqldb eq "") { 68 68 print "\nERROR:\n"; … … 72 72 print "If you cannot determine the cause of the problem, please\n"; 73 73 print "feel free to contact sql\@mit.edu for assistance.\n"; 74 `touch .failed`; 74 open FAILED, ">.failed"; 75 close FAILED; 75 76 exit 1; 76 77 } … … 80 81 81 82 if(-e "$HOME/web_scripts/$addrend/.admin") { 82 $admin_password=`cat $HOME/web_scripts/$addrend/.admin`; 83 open ADMIN, "<$HOME/web_scripts/$addrend/.admin"; 84 $admin_password=<ADMIN>; 83 85 chomp($admin_password); 86 close ADMIN; 84 87 unlink "$HOME/web_scripts/$addrend/.admin"; 85 88 } … … 95 98 print VERSION dirname($tarball), "\n"; 96 99 close(VERSION); 97 if (0) {98 `date > .scripts-version`;99 `stat /mit/scripts/deploy$scriptsdev/$deploy.tar.gz >> .scripts-version`;100 }101 100 102 101 select STDOUT;
Note: See TracChangeset
for help on using the changeset viewer.