aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-11-03 08:13:07 +0000
committerGitHub <noreply@github.com>2021-11-03 04:13:07 -0400
commita5bcf1994fa257a84c09e588c6f44221fc80e842 (patch)
treea6a56659343872d15a158ff18e1443539c49fbc7
parent118fbd94365d50359181b2e4362a97c44f50bba4 (diff)
downloadgitea-a5bcf1994fa257a84c09e588c6f44221fc80e842.tar.gz
gitea-a5bcf1994fa257a84c09e588c6f44221fc80e842.zip
Use exec -a in the FHS compliant script (#17513)
-rwxr-xr-xcontrib/fhs-compliant-script/gitea2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fhs-compliant-script/gitea b/contrib/fhs-compliant-script/gitea
index 28ce651aab..019f838f92 100755
--- a/contrib/fhs-compliant-script/gitea
+++ b/contrib/fhs-compliant-script/gitea
@@ -37,6 +37,6 @@ if [ -z "$APP_INI_SET" ]; then
fi
# Provide FHS compliant defaults to
-GITEA_WORK_DIR="${GITEA_WORK_DIR:-$WORK_DIR}" "$GITEA" $CONF_ARG "$@"
+exec -a "$0" GITEA_WORK_DIR="${GITEA_WORK_DIR:-$WORK_DIR}" "$GITEA" $CONF_ARG "$@"