mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-08 00:41:14 -04:00
Fix UA ordering
This commit is contained in:
+3
-3
@@ -1,12 +1,11 @@
|
|||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
# Use /command/with-contenv shebang because /usr/bin/with-contenv is created in this script
|
||||||
|
|
||||||
# Version 3
|
# Version 3
|
||||||
# 2022-09-25
|
# 2022-09-25
|
||||||
MOD_SCRIPT_VER="3"
|
MOD_SCRIPT_VER="3"
|
||||||
MOD_UA="Mozilla/5.0 (Linux $(uname -m)) linuxserver.io ${MANIFEST_URL}:${TAG}"
|
|
||||||
|
|
||||||
# Use /command/with-contenv shebang because /usr/bin/with-contenv is created in this script
|
|
||||||
|
|
||||||
# Define custom folder paths
|
# Define custom folder paths
|
||||||
SCRIPTS_DIR="/custom-cont-init.d"
|
SCRIPTS_DIR="/custom-cont-init.d"
|
||||||
@@ -252,6 +251,7 @@ run_mods() {
|
|||||||
FILENAME="${USERNAME}.${REPO}.${TAG}"
|
FILENAME="${USERNAME}.${REPO}.${TAG}"
|
||||||
MANIFEST_URL="https://${REGISTRY}/v2/${ENDPOINT}/manifests"
|
MANIFEST_URL="https://${REGISTRY}/v2/${ENDPOINT}/manifests"
|
||||||
BLOB_URL="https://${REGISTRY}/v2/${ENDPOINT}/blobs/"
|
BLOB_URL="https://${REGISTRY}/v2/${ENDPOINT}/blobs/"
|
||||||
|
MOD_UA="Mozilla/5.0 (Linux $(uname -m)) linuxserver.io ${MANIFEST_URL}:${TAG}"
|
||||||
case "${REGISTRY}" in
|
case "${REGISTRY}" in
|
||||||
"lscr.io") AUTH_URL="https://ghcr.io/token?scope=repository%3A${USERNAME}%2F${REPO}%3Apull";;
|
"lscr.io") AUTH_URL="https://ghcr.io/token?scope=repository%3A${USERNAME}%2F${REPO}%3Apull";;
|
||||||
"ghcr.io") AUTH_URL="https://ghcr.io/token?scope=repository%3A${USERNAME}%2F${REPO}%3Apull";;
|
"ghcr.io") AUTH_URL="https://ghcr.io/token?scope=repository%3A${USERNAME}%2F${REPO}%3Apull";;
|
||||||
|
|||||||
Reference in New Issue
Block a user