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:
parent
c96ff106d0
commit
b3a3273741
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue