work around weird behavior when starting webapp not in shell

It seems to need nohup, or it segfaults on startup. I suspect the problem
is the command that opens the web browser.
This commit is contained in:
Joey Hess 2013-05-03 01:40:18 -04:00
parent 24c8474a0b
commit 214931546c

View file

@ -110,8 +110,10 @@ run () {
# As good a start point as any.
cd "$HOME"
$cmd echo "Starting webapp ..."
$cmd nohup git annex webapp >/dev/null &
$cmd echo "Starting git-annex interface, please wait ..."
# For some reason this needs to run in the foreground.
$cmd nohup git annex webapp
$cmd echo "The git-annex interface is no longer running."
/system/bin/sh
fi
}