From 82ae462c78402477523ffe68a740f026ec397137 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 8 Feb 2024 10:55:50 +0100 Subject: [PATCH] do not display confusing error message if logs do not exist it is expected but the user does not know that and will incorrectly think it is an error --- forgejo-binary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgejo-binary.sh b/forgejo-binary.sh index 351a136..73efd11 100755 --- a/forgejo-binary.sh +++ b/forgejo-binary.sh @@ -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