mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-25 22:32:12 -05:00
Merge pull request 'do not display confusing error message if logs do not exist' (#115) from earl-warren/setup-forgejo:wip-verbose into main
Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/115 Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
commit
5ff43f6662
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ function myip() {
|
|||
function start_forgejo() {
|
||||
local work_path=$DIR/forgejo-work-path
|
||||
daemon --chdir=$DIR --unsafe --env="TERM=$TERM" --env="HOME=$HOME" --env="PATH=$PATH" --pidfile=$DIR/forgejo-pid --errlog=$DIR/forgejo-err.log --output=$DIR/forgejo-out.log -- $DIR/forgejo --config $work_path/app.ini --work-path $work_path
|
||||
if ! retry grep 'Starting server on' $work_path/log/forgejo.log ; then
|
||||
if ! retry grep --no-messages --quiet 'Starting server on' $work_path/log/forgejo.log ; then
|
||||
cat $DIR/*.log
|
||||
cat $work_path/log/*.log
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue