feat(updater): skip size verification for now

This commit is contained in:
Aloïs GAUCHER 2021-04-13 13:01:38 +02:00
commit 80d0c7bcf9

View file

@ -241,13 +241,13 @@ do
done done
tempdir=$(mktemp -d) tempdir=$(mktemp -d)
file="$tempdir/ombi_$version.tar.gz" file="$tempdir/ombi_$version.tar.gz"
wget --quiet --show-progress -O $file "https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/$filename" wget --quiet --show-progress -O $file "https://github.com/Ombi-app/Ombi/releases/download/$latestversion/$filename"
.log 6 "Version $version downloaded...checking file size..." #.log 6 "Version $version downloaded...checking file size..."
if [ "$(wc -c < $file)" != $size ]; then #if [ "$(wc -c < $file)" != $size ]; then
.log 3 "Downloaded file size does not match expected file size...bailing!" # .log 3 "Downloaded file size does not match expected file size...bailing!"
exit 2 # exit 2
fi #fi
.log 6 "File size validated...checking Ombi service status..." .log 6 "Checking Ombi service status..."
declare -i running=0 declare -i running=0
if [ "`systemctl is-active $ombiservicename`" == "active" ]; then if [ "`systemctl is-active $ombiservicename`" == "active" ]; then