mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-21 05:02:43 +00:00
11 lines
309 B
Bash
Executable File
11 lines
309 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"pkg.julialang.org"}
|
|
[[ -d "${TUNASYNC_WORKING_DIR}" ]]
|
|
cd "${TUNASYNC_WORKING_DIR}"
|
|
|
|
export JULIA_STATIC_DIR="$PWD/static"
|
|
export JULIA_CLONES_DIR="$PWD/clones"
|
|
exec julia -e "using StorageServer; mirror_tarball(\"registries/General\", [\"$BASE_URL\"])"
|
|
|