From: kirovs <ki...@us...> - 2005-12-05 16:53:20
|
Update of /cvsroot/cogs/ensupdate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17924 Modified Files: setup.pl Log Message: some messages Index: setup.pl =================================================================== RCS file: /cvsroot/cogs/ensupdate/setup.pl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** setup.pl 5 Dec 2005 16:41:45 -0000 1.8 --- setup.pl 5 Dec 2005 16:53:11 -0000 1.9 *************** *** 52,59 **** $cs.=";mysql_socket=$sock;" if ($sock); my $dbh; ! eval { ! $dbh=DBI->connect($cs,$admin, $pass)||die $DBI::errstr; ! }; if ($@) { my $tcs="DBI:mysql:host=$host;"; $tcs.=";mysql_socket=$sock;" if ($sock); --- 52,58 ---- $cs.=";mysql_socket=$sock;" if ($sock); my $dbh; ! eval { $dbh=DBI->connect($cs,$admin, $pass)||die $DBI::errstr; }; if ($@) { + print "DB not yet initialized, setup continuing OK, disregard error message above\n"; my $tcs="DBI:mysql:host=$host;"; $tcs.=";mysql_socket=$sock;" if ($sock); *************** *** 76,77 **** --- 75,78 ---- } system("mysql -h $host -p$pass -u $admin <initmgmtdb.sql")==0||die "Could not initialize correctly the management tables"; + print "Setup completed successfully.\n"; + print "You can setup a cron job now as explained in the README.\n"; |