Skip to content

Commit

Permalink
tsumugu: update
Browse files Browse the repository at this point in the history
- Improve logging (no color, better progress bar)
- Add --include, distro vars and new exclusion algorithm
- Ignore existing non-root symlinks
- Fix a bug when excluding files to download
  • Loading branch information
taoky committed Jul 28, 2023
1 parent 6a48b0d commit 2eecd34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tsumugu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ustcmirror/base:alpine
LABEL maintainer "Keyu Tao <taoky AT ustclug.org>"

RUN apk add --no-cache wget ca-certificates && \
cd /tmp/ && wget -q "https://github.com/taoky/tsumugu/releases/download/20230722/tsumugu" && \
cd /tmp/ && wget -q "https://github.com/taoky/tsumugu/releases/download/20230728/tsumugu" && \
mv /tmp/tsumugu /usr/local/bin/ && \
chmod +x /usr/local/bin/tsumugu && \
rm -rf /tmp/* && apk del wget
Expand Down
4 changes: 3 additions & 1 deletion tsumugu/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ BIND_ADDRESS=${BIND_ADDRESS:-}
TSUMUGU_MAXDELETE=${TSUMUGU_MAXDELETE:-1000}
TSUMUGU_TIMEZONEFILE=${TSUMUGU_TIMEZONEFILE:-}
TSUMUGU_EXCLUDE=${TSUMUGU_EXCLUDE:-}
TSUMUGU_USERAGENT=${TSUMUGU_USERAGENT:-"tsumugu HTTP Syncing Tool/"$(tsumugu --version | cut -d' ' -f2)}
TSUMUGU_USERAGENT=${TSUMUGU_USERAGENT:-"Tsumugu HTTP Syncing Tool/"$(tsumugu --version | cut -d' ' -f2)}
TSUMUGU_PARSER=${TSUMUGU_PARSER:-"nginx"}
TSUMUGU_THREADS=${TSUMUGU_THREADS:-"2"}
TSUMUGU_EXTRA=${TSUMUGU_EXTRA:-}
Expand All @@ -34,6 +34,8 @@ if [[ $DEBUG = true ]]; then
export RUST_LOG="tsumugu=debug"
fi

export NO_COLOR=1

exec tsumugu sync $TSUMUGU_TIMEZONEFILE \
--user-agent "$TSUMUGU_USERAGENT" \
--max-delete "$TSUMUGU_MAXDELETE" \
Expand Down

0 comments on commit 2eecd34

Please sign in to comment.