diff options
author | midipix <writeonce@midipix.org> | 2021-11-03 00:40:49 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-11-12 19:09:59 +0000 |
commit | cf9939802256e70d2eb41c1727d7a1401323ca05 (patch) | |
tree | 5e3925578fd881445a80424362ffff0c603ba081 | |
parent | cd2b89169bac984ea80691d93a527caac9aface6 (diff) | |
download | mpackage-cf9939802256e70d2eb41c1727d7a1401323ca05.tar.bz2 mpackage-cf9939802256e70d2eb41c1727d7a1401323ca05.tar.xz |
once/install.sh: record signatures of installed tarballs.
-rwxr-xr-x | once/install.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |