Wrong dd path in update.sh

This commit is contained in:
Giulio 2020-09-21 09:57:13 +02:00
parent dac0265967
commit 54ec9559ac

View File

@ -25,7 +25,7 @@ if [[ -L $file ]]
then then
exit 0 exit 0
fi fi
/usr/bin/dd if=/tmp/update.tgz.cc of=sig bs=1 count=256 skip=$skip > /dev/null 2>&1 /bin/dd if=/tmp/update.tgz.cc of=sig bs=1 count=256 skip=$skip
/usr/bin/truncate -s $skip update.tgz.cc /usr/bin/truncate -s $skip update.tgz.cc
check=`/usr/bin/openssl dgst -sha256 -verify $pubkey -signature /tmp/sig /tmp/update.tgz.cc` check=`/usr/bin/openssl dgst -sha256 -verify $pubkey -signature /tmp/sig /tmp/update.tgz.cc`
if [ "$check" == "Verified OK" ] if [ "$check" == "Verified OK" ]