1
0
miroir de https://github.com/mail-in-a-box/mailinabox.git synchronisé 2026-03-25 19:17:22 +01:00

Enable compression for wget downloads.

This fixes an issue where unless compression=auto (or compression=gzip) is specified, using wget to download jquery.min.js by setup/management.sh fails with max redirects exceeded.
The man page says --compression is an experimental option, but it doesn't appear to have any problems.
Note that downloading jquery.min.js with curl works fine when wget without --compression fails.
Cette révision appartient à :
downtownallday
2022-10-20 17:02:04 -04:00
Parent c787437317
révision cac796a5bb

Voir le fichier

@@ -220,7 +220,7 @@ function wget_verify {
DEST=$3
CHECKSUM="$HASH $DEST"
rm -f $DEST
hide_output wget -O $DEST $URL
hide_output wget --compression=auto -O $DEST $URL
if ! echo "$CHECKSUM" | sha1sum --check --strict > /dev/null; then
echo "------------------------------------------------------------"
echo "Download of $URL did not match expected checksum."