dev-server: when wiping, initialize blobserver

with blobs in ./dev-server-template

Change-Id: I49f9c861daecfdc5a32fed4a9e53e188e2cc0003
This commit is contained in:
mpl 2012-11-20 16:19:50 +01:00
parent f26cd134de
commit 1942c8509b
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ $ENV{CAMLI_PORT} = $port;
$ENV{CAMLI_SECRET_RING} = "$Bin/pkg/jsonsign/testdata/test-secring.gpg"; $ENV{CAMLI_SECRET_RING} = "$Bin/pkg/jsonsign/testdata/test-secring.gpg";
$ENV{CAMLI_DBNAME} = $DBNAME; $ENV{CAMLI_DBNAME} = $DBNAME;
my $templatedir = "$Bin/dev-server-template";
if ($opt_wipe && -d $templatedir) {
my $blobs = "$ENV{CAMLI_ROOT}/sha1";
system("cp", "-a", $templatedir, $blobs) and die "Failed to cp template blobs.\n";
}
# To use resources from disk, instead of the copies linked into the # To use resources from disk, instead of the copies linked into the
# binary: # binary:
unless ($opt_staticres) { unless ($opt_staticres) {