kontena / chpharos

Pharos version switcher
https://get.pharos.sh/
Apache License 2.0
3 stars 4 forks source link

shasum not installed CentOS 7 #34

Closed denji closed 6 years ago

denji commented 6 years ago

CentOS "shasum" is called "sha{BIT}sum"

chpharos/build/generate_download_list.rb

-[name, tempfile.size, `shasum -a 256 #{tempfile.path}`[/[a-f0-9]+/], url].join("|")
+[name, tempfile.size, `sha256sum #{tempfile.path}`[/[a-f0-9]+/], url].join("|")
-[name, tempfile.size, `shasum -a 256 #{tempfile.path}`[/[a-f0-9]+/], url].join("|")
+[name, tempfile.size, `openssl sha256 #{tempfile.path}`[/[a-f0-9]+/], url].join("|")