From 80d0c7bcf9df914ee81328417496656d23ae66ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20GAUCHER?= Date: Tue, 13 Apr 2021 13:01:38 +0200 Subject: [PATCH] feat(updater): skip size verification for now --- update_ombi.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/update_ombi.sh b/update_ombi.sh index fba0eae..43d2567 100644 --- a/update_ombi.sh +++ b/update_ombi.sh @@ -241,13 +241,13 @@ do done tempdir=$(mktemp -d) file="$tempdir/ombi_$version.tar.gz" -wget --quiet --show-progress -O $file "https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/$filename" -.log 6 "Version $version downloaded...checking file size..." -if [ "$(wc -c < $file)" != $size ]; then - .log 3 "Downloaded file size does not match expected file size...bailing!" - exit 2 -fi -.log 6 "File size validated...checking Ombi service status..." +wget --quiet --show-progress -O $file "https://github.com/Ombi-app/Ombi/releases/download/$latestversion/$filename" +#.log 6 "Version $version downloaded...checking file size..." +#if [ "$(wc -c < $file)" != $size ]; then +# .log 3 "Downloaded file size does not match expected file size...bailing!" +# exit 2 +#fi +.log 6 "Checking Ombi service status..." declare -i running=0 if [ "`systemctl is-active $ombiservicename`" == "active" ]; then