SOLVED How do I install sha256sum???

Status
Not open for further replies.

nathank1989

Contributor
Joined
Aug 29, 2016
Messages
103
How do you install sha256sum sha1sum on freebsd jail? I have coreutils installed but I still get
sha256sum: Command not found.
sha1sum: Command not found.

I had this issue before and fixed it with a different package, but for the life of me, I cannot remember what it was.
 

nathank1989

Contributor
Joined
Aug 29, 2016
Messages
103
Actually, I found it.

Reason was; the PIA Port Forward script for Transmission uses the line:
Code:
 if [ ! -f "$client_id_file" ]; then
   if hash shasum 2>/dev/null; then
		   head -n 100 /dev/urandom | shasum -a 256 | tr -d " -" > "$client_id_file"
  elif hash sha256sum 2>/dev/null; then
		   head -n 100 /dev/urandom | sha256sum | tr -d " -" > "$client_id_file"



I found that you need p5-Digest-SHA to allow the script to run correctly.
 
Status
Not open for further replies.
Top