summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-02-10 06:15:06 +0000
committerGitHub <noreply@github.com>2022-02-10 01:15:06 -0500
commit7489d96db6daa8e12abf97424b6fcc0b65f5a4bd (patch)
treecf60486a53e79b8e89daa6ab37c135a8422cbdc5 /contrib
parentbc8e19ece1663d67f980c56612eb2423ae33eee6 (diff)
downloadgitea-7489d96db6daa8e12abf97424b6fcc0b65f5a4bd.tar.gz
gitea-7489d96db6daa8e12abf97424b6fcc0b65f5a4bd.zip
Fix issue with docker-rootless shimming script (#18690)
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fhs-compliant-script/gitea6
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/fhs-compliant-script/gitea b/contrib/fhs-compliant-script/gitea
index ae1ae3cf14..ea033b0f2d 100755
--- a/contrib/fhs-compliant-script/gitea
+++ b/contrib/fhs-compliant-script/gitea
@@ -33,10 +33,8 @@ for i in "$@"; do
done
if [ -z "$APP_INI_SET" ]; then
- CONF_ARG="-c \"$APP_INI\""
+ CONF_ARG=("-c" "${GITEA_APP_INI:-$APP_INI}")
fi
# Provide FHS compliant defaults
-GITEA_WORK_DIR="${GITEA_WORK_DIR:-$WORK_DIR}" exec -a "$0" "$GITEA" $CONF_ARG "$@"
-
-
+GITEA_WORK_DIR="${GITEA_WORK_DIR:-$WORK_DIR}" exec -a "$0" "$GITEA" "${CONF_ARG[@]}" "$@"