Docker: Update dep install scripts to use IPv4 only
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
544bbfe23b
commit
fb5d6fd433
4 changed files with 5 additions and 5 deletions
2
scripts/dist/install-go.sh
vendored
2
scripts/dist/install-go.sh
vendored
|
@ -57,7 +57,7 @@ esac
|
|||
# Replace current installation in "/usr/local/go".
|
||||
echo "Installing Go for ${DESTARCH^^} from \"$URL\". Please wait."
|
||||
rm -rf /usr/local/go
|
||||
wget -c "$URL" -O - | tar -xz -C /usr/local
|
||||
wget --inet4-only -c "$URL" -O - | tar -xz -C /usr/local
|
||||
|
||||
# Add symlink to go binary.
|
||||
echo "Adding symbolic links for go and gofmt."
|
||||
|
|
|
@ -25,7 +25,7 @@ if [[ -f ${MODEL_ZIP} ]] && [[ $(sha1sum ${MODEL_ZIP}) == ${MODEL_HASH} ]]; then
|
|||
else
|
||||
# Download model
|
||||
echo "Downloading latest model from $MODEL_URL..."
|
||||
wget ${MODEL_URL} -O ${MODEL_ZIP}
|
||||
wget --inet4-only -c "${MODEL_URL}" -O ${MODEL_ZIP}
|
||||
|
||||
TMP_HASH=$(sha1sum ${MODEL_ZIP})
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ if [[ -f ${MODEL_ZIP} ]] && [[ $(sha1sum ${MODEL_ZIP}) == "${MODEL_HASH}" ]]; th
|
|||
else
|
||||
# Download model
|
||||
echo "Downloading latest model from $MODEL_URL..."
|
||||
wget "${MODEL_URL}" -O ${MODEL_ZIP}
|
||||
wget --inet4-only -c "${MODEL_URL}" -O ${MODEL_ZIP}
|
||||
|
||||
TMP_HASH=$(sha1sum ${MODEL_ZIP})
|
||||
|
||||
|
|
|
@ -25,11 +25,11 @@ if [[ -f ${MODEL_ZIP} ]] && [[ $(sha1sum ${MODEL_ZIP}) == "${MODEL_HASH}" ]]; th
|
|||
else
|
||||
# Download model
|
||||
echo "Downloading latest model from $MODEL_URL..."
|
||||
wget "${MODEL_URL}" -O ${MODEL_ZIP}
|
||||
wget --inet4-only -c "${MODEL_URL}" -O ${MODEL_ZIP}
|
||||
|
||||
TMP_HASH=$(sha1sum ${MODEL_ZIP})
|
||||
|
||||
echo ${TMP_HASH}
|
||||
echo "${TMP_HASH}"
|
||||
fi
|
||||
|
||||
# Create backup
|
||||
|
|
Loading…
Reference in a new issue