From 2b63fbd75481207a0065f6ca5803f0b54ae394c4 Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 17 Sep 2020 15:45:14 +0200 Subject: [PATCH] Minor fixed to update script --- update/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/update.sh b/update/update.sh index 84016e0..c76130a 100755 --- a/update/update.sh +++ b/update/update.sh @@ -2,7 +2,7 @@ /bin/echo "Usage: sudo clearpassword= -E update.sh" password=`/bin/cat /etc/txtpwd` -auth=`/bin/echo -n $clearpassword | /bin/sha512sum | /bin/cut -d' ' -f 1` +auth=`/bin/echo -n $clearpassword | /usr/bin/sha512sum | /usr/bin/cut -d' ' -f 1` if [ "$auth" != "$password" ]; then /bin/echo "Wrong password" @@ -14,7 +14,7 @@ pubkey="/pub.pem" file="/tmp/update.tgz.cc" /bin/echo "### ccOS Update Script ###" /bin/echo "[+] Starting" -/usr/bin/sleep 1 +/bin/sleep 1 /bin/echo "[+] Extracting Signature" skip=$(expr $(stat -c '%s' $file) - 256) if [[ -L $file ]]