Skip to content

Commit 1a77d72

Browse files
committed
yukina: Update; use mirror-json log format
1 parent 5d7d14b commit 1a77d72

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

yukina/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ustcmirror/base:alpine
22
LABEL maintainer="Keyu Tao <taoky AT ustclug.org>"
33
LABEL bind_support=true
44

5-
ARG YUKINA_VERSION=20260209
5+
ARG YUKINA_VERSION=20260222
66

77
RUN <<EOF
88
set -euo pipefail

yukina/sync.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ while IFS= read -r -d '' arg; do
3838
extra_array+=("$arg")
3939
done < <(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+
4146
exec 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" \

0 commit comments

Comments
 (0)