mirror of https://github.com/perkeep/perkeep.git
dev-server: when wiping, initialize blobserver
with blobs in ./dev-server-template Change-Id: I49f9c861daecfdc5a32fed4a9e53e188e2cc0003
This commit is contained in:
parent
f26cd134de
commit
1942c8509b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue