Skip to content

Commit

Permalink
Update autofirma install script to validate md5sum
Browse files Browse the repository at this point in the history
  • Loading branch information
franute committed Sep 13, 2024
1 parent f2f4a86 commit 308588e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions files/scripts/autofirma.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7933cc1a62cd0887ce2c4a954aea9306 autofirma-1.8.3-1.noarch_FEDORA.rpm
15 changes: 13 additions & 2 deletions files/scripts/install_autofirma.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@
set -oue pipefail

# Your code goes here.
curl -O https://estaticos.redsara.es/comunes/autofirma/1/8/3/AutoFirma_Linux_Fedora.zip
echo "Downloading dependencies"
curl -O https://estaticos.redsara.es/comunes/autofirma/currentversion/AutoFirma_Linux_Fedora.zip
curl -L https://github.com/franute/nimbus-os/main/files/scripts/autofirma.md5 > autofirma.md5
unzip AutoFirma_Linux_Fedora.zip
rpm-ostree install -y ./autofirma-1.8.3-1.noarch_FEDORA.rpm

if md5sum -c autofirma.md5 > /dev/null; then
echo "MD5Sum validated, installing autofirma."
rpm-ostree install -y ./autofirma-1.8.3-1.noarch_FEDORA.rpm
else
echo "Incorrect MD5Sum"
fi

echo "Deleting downloaded files"
rm autofirma.md5
rm AutoFirma_Linux_Fedora.zip
rm autofirma-1.8.3-1.noarch_FEDORA.rpm

0 comments on commit 308588e

Please sign in to comment.