mirror of https://github.com/perkeep/perkeep.git
dev-camput: flag to specify path
Change-Id: I16eea9df236af332755d9e8902aac100dfdf6ba7
This commit is contained in:
parent
4bf389bb81
commit
c3b87326c8
|
@ -16,9 +16,12 @@ sub usage {
|
|||
}
|
||||
|
||||
my $opt_tls;
|
||||
my $opt_path = "/";
|
||||
Getopt::Long::Configure("pass_through");
|
||||
GetOptions("tls" => \$opt_tls)
|
||||
or usage();
|
||||
GetOptions(
|
||||
"tls" => \$opt_tls,
|
||||
"path=s" => \$opt_path,
|
||||
) or usage();
|
||||
|
||||
my $camput = build_bin("./cmd/camput");
|
||||
|
||||
|
@ -30,7 +33,7 @@ $ENV{"CAMLI_SECRET_RING"} = "$Bin/pkg/jsonsign/testdata/test-secring.gpg";
|
|||
$ENV{"CAMLI_KEYID"} = "26F5ABDA";
|
||||
$ENV{"CAMLI_DEV_KEYBLOBS"} = "$Bin/config/dev-client-dir/keyblobs";
|
||||
$ENV{"CAMLI_AUTH"} = "userpass:camlistore:pass3179";
|
||||
my $blobserver = "http://localhost:3179/";
|
||||
my $blobserver = "http://localhost:3179${opt_path}";
|
||||
if ($opt_tls) {
|
||||
$blobserver =~ s/^http/https/;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue