fix: replace sha1sum with sha256sum
This commit is contained in:
parent
655e6f0cfd
commit
9ab5633b0a
1 changed files with 4 additions and 4 deletions
8
vps2arch
8
vps2arch
|
@ -51,11 +51,11 @@ download() {
|
||||||
}
|
}
|
||||||
|
|
||||||
download_and_extract_bootstrap() {
|
download_and_extract_bootstrap() {
|
||||||
local sha1 filename
|
local sha256 filename
|
||||||
download iso/latest/sha1sums.txt | egrep "[[:digit:]]-$cpu_type.tar.gz" > "sha1sums.txt"
|
download iso/latest/sha256sums.txt | egrep "[[:digit:]]-$cpu_type.tar.gz" > "sha256sums.txt"
|
||||||
read -r sha1 filename < "sha1sums.txt"
|
read -r sha256 filename < "sha256sums.txt"
|
||||||
download "iso/latest/$filename" > "$filename"
|
download "iso/latest/$filename" > "$filename"
|
||||||
sha1sum -c sha1sums.txt || exit 1
|
sha256sum -c sha256sums.txt || exit 1
|
||||||
tar -xpzf "$filename"
|
tar -xpzf "$filename"
|
||||||
rm -f "$filename"
|
rm -f "$filename"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue