Generate SHA1 Hash Based on GitHub file URL

Kyelimepi

Cadet
Joined
Mar 5, 2022
Messages
1
Hi there!
I recently made a Minecraft server using TrueNAS (12.0) running in a 12.3 Jail. I want to add Resource Packs to the server. I have created a repo on GitHub and added a GitHub action that will zip the resource pack. From there, I have a URL. My question is, is it possible to create a Chron Job or script that grabs the zip file from the URL, generates an SHA1 hash of that file, and copies that hash to the server.properties file in my server directory? I've looked and found how to generate SHA1 from command line, but it doesn't work with a file at a URL. Basically, I want to automate updating the SHA1 hash of the resource pack zip. Any help is much appreciated!

Thanks!
 
Top