improved runshell start

Start webapp in nohup so it doesn't close when window is closed and so it
doesn't output stuff over the shell prompt.
This commit is contained in:
Joey Hess 2013-05-03 01:00:00 -04:00
parent c96ff106d0
commit b3a3273741

View file

@ -74,9 +74,6 @@ install () {
}
run () {
# As good a start point as any.
cd "$HOME"
PATH="$base/bin:$PATH"
export PATH
@ -104,7 +101,12 @@ run () {
shift 1
exec "$cmd" "$@"
else
git annex webapp &
# As good a start point as any.
if $cmd test -d "$HOME"; then
cd "$HOME"
fi
$cmd echo "Starting webapp ..."
$cmd nohup git annex webapp >/dev/null &
/system/bin/sh
fi
}