File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM ustcmirror/base:alpine
22LABEL maintainer="Keyu Tao <taoky AT ustclug.org>"
33LABEL bind_support=true
44
5- ARG YUKINA_VERSION=20260209
5+ ARG YUKINA_VERSION=20260222
66
77RUN <<EOF
88 set -euo pipefail
Original file line number Diff line number Diff line change @@ -38,8 +38,14 @@ while IFS= read -r -d '' arg; do
3838 extra_array+=(" $arg " )
3939done < <( echo " $YUKINA_EXTRA " | xargs printf " %s\0" )
4040
41+ json_log_args=()
42+ if compgen -G " /nginx-log/${YUKINA_REPO} _json.log*" > /dev/null; then
43+ json_log_args=(--log-format mirror-json --log-suffix _json)
44+ fi
45+
4146exec yukina --name " $YUKINA_REPO " \
4247 --log-path " /nginx-log" \
48+ " ${json_log_args[@]} " \
4349 --repo-path " $TO " \
4450 --size-limit " $YUKINA_SIZE_LIMIT " \
4551 --url " $UPSTREAM " \
You can’t perform that action at this time.
0 commit comments