From cf9939802256e70d2eb41c1727d7a1401323ca05 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 3 Nov 2021 00:40:49 +0000 Subject: once/install.sh: record signatures of installed tarballs. --- once/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'once') diff --git a/once/install.sh b/once/install.sh index 07559f1..23ecab4 100755 --- a/once/install.sh +++ b/once/install.sh @@ -21,15 +21,21 @@ else mkdir -p "$SYSROOT" fi +rm -f /etc/tarballs.sha256.tmp + for tarball in /tarballs/*.tar.gz; do echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ echo extracting files from $tarball echo .................................................. tar -xpvf $tarball -C "$SYSROOT" + sha256sum $tarball >> /etc/tarballs.sha256.tmp echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ echo done +rm -f /etc/tarballs.sha256 +sed 's@/tarballs/@@g' /etc/tarballs.sha256.tmp > /etc/tarballs.sha256 + /custom.sh echo -- cgit v1.2.3