Docker: Update dep install scripts to use IPv4 only

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-08-10 09:02:46 +02:00
parent 544bbfe23b
commit fb5d6fd433
4 changed files with 5 additions and 5 deletions

View file

@ -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."

View file

@ -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})

View file

@ -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})

View file

@ -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