Skip to content

Commit

Permalink
yukina: Add custom YUKINA_REPO variable
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Dec 28, 2024
1 parent cc6814f commit 67d2903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ Note that you shall bind necessary nginx log to `/nginx-log/` when syncing.
| `YUKINA_SIZE_LIMIT` | The size limit of binary blobs. Defaults to `512g`. |
| `YUKINA_FILTER` | Accepts regex to filter out binary blobs. Defaults to empty. |
| `YUKINA_EXTRA` | Extra options. Defaults to empty. |
| `YUKINA_REPO` | The repository name. Defaults to `$REPO`. |

### yum-sync

Expand Down
3 changes: 2 additions & 1 deletion yukina/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ BIND_ADDRESS=${BIND_ADDRESS:-}
YUKINA_SIZE_LIMIT=${YUKINA_SIZE_LIMIT:-"512g"}
YUKINA_FILTER=${YUKINA_FILTER:-}
YUKINA_EXTRA=${YUKINA_EXTRA:-}
YUKINA_REPO=${YUKINA_REPO:-$REPO}

if [[ $DEBUG = true ]]; then
export RUST_LOG="yukina=debug"
Expand All @@ -37,7 +38,7 @@ while IFS= read -r -d '' arg; do
extra_array+=("$arg")
done < <(echo "$YUKINA_EXTRA" | xargs printf "%s\0")

exec yukina --name "$REPO" \
exec yukina --name "$YUKINA_REPO" \
--log-path "/nginx-log" \
--repo-path "$TO" \
--size-limit "$YUKINA_SIZE_LIMIT" \
Expand Down

0 comments on commit 67d2903

Please sign in to comment.