mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 03:32:43 +00:00
18 lines
465 B
Bash
Executable File
18 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function sync_repo_ck() {
|
|
repo_url="$1"
|
|
repo_dir="$2"
|
|
|
|
[ ! -d "$repo_dir" ] && mkdir -p "$repo_dir"
|
|
cd $repo_dir
|
|
lftp "${repo_url}/" -e 'mirror -v -P 5 --delete --no-recursion; bye'
|
|
wget "${repo_url}/repo-ck.db" -O "repo-ck.db"
|
|
wget "${repo_url}/repo-ck.files" -O "repo-ck.files"
|
|
}
|
|
|
|
UPSTREAM="http://repo-ck.com"
|
|
|
|
sync_repo_ck "${UPSTREAM}/x86_64" "${TUNASYNC_WORKING_DIR}/x86_64"
|
|
#sync_repo_ck "${UPSTREAM}/i686" "${TUNASYNC_WORKING_DIR}/i686"
|