Update provision.sh
Browse files- provision.sh +11 -2
provision.sh
CHANGED
|
@@ -147,7 +147,7 @@ NODES=(
|
|
| 147 |
"https://github.com/EllangoK/ComfyUI-post-processing-nodes"
|
| 148 |
"https://github.com/wallish77/wlsh_nodes"
|
| 149 |
"https://github.com/chrisgoringe/cg-image-filter"
|
| 150 |
-
|
| 151 |
)
|
| 152 |
|
| 153 |
# Extra pip packages (installed after nodes)
|
|
@@ -247,7 +247,16 @@ download_if_missing() {
|
|
| 247 |
|
| 248 |
echo " [downloading] ${filename}..."
|
| 249 |
|
| 250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
if [ -n "$auth_header" ]; then
|
| 252 |
aria2c -x 16 -s 16 -k 1M -c \
|
| 253 |
--header="Authorization: Bearer ${auth_header}" \
|
|
|
|
| 147 |
"https://github.com/EllangoK/ComfyUI-post-processing-nodes"
|
| 148 |
"https://github.com/wallish77/wlsh_nodes"
|
| 149 |
"https://github.com/chrisgoringe/cg-image-filter"
|
| 150 |
+
# NOTE: moonwhaler/comfyui-seedvr2-tilingups returns 404 — removed
|
| 151 |
)
|
| 152 |
|
| 153 |
# Extra pip packages (installed after nodes)
|
|
|
|
| 247 |
|
| 248 |
echo " [downloading] ${filename}..."
|
| 249 |
|
| 250 |
+
# CivitAI uses redirect chains that aria2c can't follow with auth.
|
| 251 |
+
# Use curl -L for CivitAI URLs, aria2c for everything else.
|
| 252 |
+
if [[ "$url" =~ civitai\.com ]]; then
|
| 253 |
+
if [ -n "$auth_header" ]; then
|
| 254 |
+
curl -L -# -H "Authorization: Bearer ${auth_header}" \
|
| 255 |
+
-o "${dir}/${filename}" "$url"
|
| 256 |
+
else
|
| 257 |
+
curl -L -# -o "${dir}/${filename}" "$url"
|
| 258 |
+
fi
|
| 259 |
+
elif command -v aria2c &>/dev/null; then
|
| 260 |
if [ -n "$auth_header" ]; then
|
| 261 |
aria2c -x 16 -s 16 -k 1M -c \
|
| 262 |
--header="Authorization: Bearer ${auth_header}" \
|