In dev mode, default to 'foo' for the password.

Change-Id: I60d10174fbf80ce325501b91d6369ef612bf67ed
This commit is contained in:
Brad Fitzpatrick 2013-07-08 20:24:10 +10:00
parent f1728b3299
commit 98c488d2cc
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ if ($in_prod) {
sleep 5;
}
} else {
my $pass_file = "$ENV{HOME}/.config/camlistore/camorg-blobserver.pass";
unless (-s $pass_file) {
`mkdir -p $ENV{HOME}/.config/camlistore/`;
open (my $fh, ">$pass_file");
print $fh "foo\n";
close($fh);
}
push @args, "--http=127.0.0.1:8080"; # localhost avoids Mac firewall warning
exec(@args);
die "Failed to exec: $!";