diff --git a/scripts/dist/install-go.sh b/scripts/dist/install-go.sh index 89c6ead7e..ed2497ce4 100755 --- a/scripts/dist/install-go.sh +++ b/scripts/dist/install-go.sh @@ -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." diff --git a/scripts/download-facenet.sh b/scripts/download-facenet.sh index 71fcff424..cde93b402 100755 --- a/scripts/download-facenet.sh +++ b/scripts/download-facenet.sh @@ -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}) diff --git a/scripts/download-nasnet.sh b/scripts/download-nasnet.sh index b8802311e..d5bc08e10 100755 --- a/scripts/download-nasnet.sh +++ b/scripts/download-nasnet.sh @@ -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}) diff --git a/scripts/download-nsfw.sh b/scripts/download-nsfw.sh index f1f5bdbd0..9875b4b02 100755 --- a/scripts/download-nsfw.sh +++ b/scripts/download-nsfw.sh @@ -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