Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanwoodsmall/verify-habitat-pkg-files-on-disk
https://github.com/ryanwoodsmall/verify-habitat-pkg-files-on-disk
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanwoodsmall/verify-habitat-pkg-files-on-disk
- Owner: ryanwoodsmall
- Created: 2020-05-19T18:45:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-29T06:58:13.000Z (about 1 year ago)
- Last Synced: 2024-03-15T19:57:48.927Z (8 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# verify-habitat-pkg-files-on-disk
verify on-disk files using Habitat's stored BLAKE2 sums.
this is a simple bash script that uses coreutils `b2sum` command.
equivalent to:
```
for f in /hab/pkgs/*/*/*/*/FILES ; do
b2sum --quiet --check ${f} 2>/dev/null
done
```with a lot of boilerplate.
## install and use
```
# install the package:
sudo hab pkg install ryanwoodsmall/verify-habitat-pkg-files-on-disk# an install hook creates a symlink but does not create a _real_ service
# verify all installedpackages:
sudo /hab/svc/verify-habitat-pkg-files-on-disk/static/bin/verify-habitat-pkg-files-on-disk.sh# verify just (the latest version of) this package:
hab pkg list ryanwoodsmall/verify-habitat-pkg-files-on-disk \
| tail -1 \
| xargs /hab/svc/verify-habitat-pkg-files-on-disk/static/bin/verify-habitat-pkg-files-on-disk.sh
```## links
- bldr : https://bldr.habitat.sh/#/pkgs/ryanwoodsmall/verify-habitat-pkg-files-on-disk