mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
switch upstream of pypi to pypi.org from pypi.python.org
This commit is contained in:
parent
5a2bf39bb3
commit
ce11f88f2f
5
pypi.sh
5
pypi.sh
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
BANDERSNATCH=${BANDERSNATCH:-"/usr/local/bin/bandersnatch"}
|
||||
TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM:-"https://pypi.org/"}
|
||||
CONF="/tmp/bandersnatch.conf"
|
||||
INIT=${INIT:-"0"}
|
||||
|
||||
@ -14,7 +15,7 @@ if [[ $INIT == "0" ]]; then
|
||||
cat > $CONF << EOF
|
||||
[mirror]
|
||||
directory = ${TUNASYNC_WORKING_DIR}
|
||||
master = https://pypi.python.org
|
||||
master = ${TUNASYNC_UPSTREAM}
|
||||
timeout = 15
|
||||
workers = 10
|
||||
stop-on-error = true
|
||||
@ -29,7 +30,7 @@ else
|
||||
cat > $CONF << EOF
|
||||
[mirror]
|
||||
directory = ${TUNASYNC_WORKING_DIR}
|
||||
master = https://pypi.python.org
|
||||
master = ${TUNASYNC_UPSTREAM}
|
||||
timeout = 15
|
||||
workers = 10
|
||||
stop-on-error = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user