mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
nodesource
This commit is contained in:
parent
162ffd130c
commit
4b046aa740
12
scripts/nodesource.sh
Normal file
12
scripts/nodesource.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/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 --verbose -P 5 --delete --only-newer; bye"
|
||||
}
|
||||
|
||||
sync_repo_ck "https://deb.nodesource.com/node" "${TUNASYNC_WORKING_DIR}/deb"
|
||||
sync_repo_ck "https://rpm.nodesource.com/pub" "${TUNASYNC_WORKING_DIR}/rpm"
|
Loading…
x
Reference in New Issue
Block a user