File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -190,11 +190,7 @@ yarn cache clean --all
190
190
VERIFY_DIRECTORIES=" /etc /usr /opt"
191
191
HASH_LOCATION=" /opt/integrity_check"
192
192
mkdir -p $HASH_LOCATION
193
- # delete hashes so they aren't included in the new files list
194
- rm -f $HASH_LOCATION /hashes.txt; rm -f $HASH_LOCATION /files.txt
195
- find $VERIFY_DIRECTORIES -type f > $HASH_LOCATION /files.txt
196
- # also hash file list
197
- echo " $HASH_LOCATION /files.txt" >> $HASH_LOCATION /files.txt
198
- sudo rhash --sha256 --file-list $HASH_LOCATION /files.txt -o $HASH_LOCATION /hashes.txt
193
+
194
+ sudo rhash --sha256 --recursive $VERIFY_DIRECTORIES -o $HASH_LOCATION /hashes.txt
199
195
200
196
echo " axiom-update finished. Software version is now $( git describe --always --abbrev=8 --dirty) ."
Original file line number Diff line number Diff line change 2
2
HASH_LOCATION=" /opt/integrity_check"
3
3
4
4
echo " Checking Axiom system files... (this might take a while)"
5
- output=$( sudo rhash -c --skip-ok --brief $HASH_LOCATION /hashes.txt)
5
+ output=$( sudo rhash --percents - c --skip-ok --brief $HASH_LOCATION /hashes.txt)
6
6
7
7
if [ -z " $output " ]; then
8
8
echo " No problems detected, all files are in factory state."
You can’t perform that action at this time.
0 commit comments