Commit 27667114 authored by Mike Hibler's avatar Mike Hibler
Browse files

Add update script for transition to master frisbee server.

parent ea4058a1
# Do things to set up the frisbee master server.
use strict;
use libinstall;
use emdb;
use Image;
use NodeType;
sub InstallUpdate($$)
my ($version, $phase) = @_;
my $pid = "emulab-ops";
# If something should run in the pre-install phase.
if ($phase eq "pre") {
if (-x "$TBROOT/sbin/frisbeelauncher") {
print("To make effective use of the frisbee master server you\n",
"will need to update your disk loader MFS(es). You will\n",
"need new /etc/testbed/{tmcd,frisbee,rc.frisbee} files.\n",
"You can download them from:\n",
"and follow the instructions:\n",
"or install a completely new MFS from:\n",
# If something should run in the post-install phase.
if ($phase eq "post") {
Phase "clean-DB", "Clean out the old frisbee info", sub {
PhaseFail("Could not clean out frisbee_blobs table")
if (!DBQueryWarn("DELETE FROM frisbee_blobs"));
Phase "clean-scripts", "Clean out old frisbee scripts", sub {
PhaseSkip("already done")
if (! -x "$TBROOT/sbin/frisbeelauncher");
PhaseFail("Could not remove frisbeelauncher")
if (!unlink("$TBROOT/sbin/frisbeelauncher"));
return 0;
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