From 98c488d2ccee3e9881a56880a43e547f9959c76f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 8 Jul 2013 20:24:10 +1000 Subject: [PATCH] In dev mode, default to 'foo' for the password. Change-Id: I60d10174fbf80ce325501b91d6369ef612bf67ed --- website/run.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/run.pl b/website/run.pl index e64d9bc7b..20de434b7 100755 --- a/website/run.pl +++ b/website/run.pl @@ -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: $!";