1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-16 16:36:17 +00: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:
earl-warren 2024-02-08 10:38:55 +00:00
commit 5ff43f6662

View file

@ -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