diff --git a/dev-camput b/dev-camput index 2fab9cd6e..98dd10018 100755 --- a/dev-camput +++ b/dev-camput @@ -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/; }