Minor fixed to update script
This commit is contained in:
parent
3bcb7aa6b4
commit
2b63fbd754
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/bin/echo "Usage: sudo clearpassword=<password> -E update.sh"
|
/bin/echo "Usage: sudo clearpassword=<password> -E update.sh"
|
||||||
password=`/bin/cat /etc/txtpwd`
|
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
|
if [ "$auth" != "$password" ]; then
|
||||||
/bin/echo "Wrong password"
|
/bin/echo "Wrong password"
|
||||||
@ -14,7 +14,7 @@ pubkey="/pub.pem"
|
|||||||
file="/tmp/update.tgz.cc"
|
file="/tmp/update.tgz.cc"
|
||||||
/bin/echo "### ccOS Update Script ###"
|
/bin/echo "### ccOS Update Script ###"
|
||||||
/bin/echo "[+] Starting"
|
/bin/echo "[+] Starting"
|
||||||
/usr/bin/sleep 1
|
/bin/sleep 1
|
||||||
/bin/echo "[+] Extracting Signature"
|
/bin/echo "[+] Extracting Signature"
|
||||||
skip=$(expr $(stat -c '%s' $file) - 256)
|
skip=$(expr $(stat -c '%s' $file) - 256)
|
||||||
if [[ -L $file ]]
|
if [[ -L $file ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user