Commit 6bbf8b66 authored by Leigh Stoller's avatar Leigh Stoller

Minor cleanup and remove print statement that says how to fix; all

this will happen via the new update-testbed script.
parent 57ab2fb1
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2007, 2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# All rights reserved.
#
use strict;
......@@ -21,6 +21,7 @@ my $optlist = "d";
# Configure variables
#
my $testbed_srcdir = "@top_srcdir@";
my $DBNAME = "@TBDBNAME@";
# Locals
my $dbfill = "sql/database-fill.sql";
......@@ -30,7 +31,7 @@ my $tempdifffile = "/tmp/dbdiff.$$";
my $tempnewfile = "/tmp/dbdiff.new.$$";
my $tempoldfile = "/tmp/dbdiff.old.$$";
my $exitcode = 0;
my $debug = 0;
my $debug = 1;
my %options = ();
if (! getopts($optlist, \%options)) {
......@@ -87,9 +88,9 @@ if (!$?) {
print "*** Your installed database is out of date with $dbfill\n";
print " Differences are listed in $tempdifffile\n"
if ($debug);
print " To bring it up to date, run: \n";
print " mysqldump tbdb > tbdb.backup\n";
print " (cd db; mysql tbdb < $master_fill)\n";
print " As a safety measure, you will not be able to install until this\n";
print " is resolved.\n";
unlink($tempdifffile)
if (!$debug);
exit(1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment