mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:36:28 +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
|
#!/bin/bash
|
||||||
BANDERSNATCH=${BANDERSNATCH:-"/usr/local/bin/bandersnatch"}
|
BANDERSNATCH=${BANDERSNATCH:-"/usr/local/bin/bandersnatch"}
|
||||||
|
TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM:-"https://pypi.org/"}
|
||||||
CONF="/tmp/bandersnatch.conf"
|
CONF="/tmp/bandersnatch.conf"
|
||||||
INIT=${INIT:-"0"}
|
INIT=${INIT:-"0"}
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ if [[ $INIT == "0" ]]; then
|
|||||||
cat > $CONF << EOF
|
cat > $CONF << EOF
|
||||||
[mirror]
|
[mirror]
|
||||||
directory = ${TUNASYNC_WORKING_DIR}
|
directory = ${TUNASYNC_WORKING_DIR}
|
||||||
master = https://pypi.python.org
|
master = ${TUNASYNC_UPSTREAM}
|
||||||
timeout = 15
|
timeout = 15
|
||||||
workers = 10
|
workers = 10
|
||||||
stop-on-error = true
|
stop-on-error = true
|
||||||
@ -29,7 +30,7 @@ else
|
|||||||
cat > $CONF << EOF
|
cat > $CONF << EOF
|
||||||
[mirror]
|
[mirror]
|
||||||
directory = ${TUNASYNC_WORKING_DIR}
|
directory = ${TUNASYNC_WORKING_DIR}
|
||||||
master = https://pypi.python.org
|
master = ${TUNASYNC_UPSTREAM}
|
||||||
timeout = 15
|
timeout = 15
|
||||||
workers = 10
|
workers = 10
|
||||||
stop-on-error = false
|
stop-on-error = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user