kiss: Fix symlinks in /etc/. Related to #193

This commit is contained in:
Dylan Araps 2020-11-19 11:34:54 +02:00
parent 18c7335241
commit b1302664d5
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -1064,11 +1064,11 @@ pkg_etc() (
done done
# Handle files in /etc/ based on a 3-way checksum check. # Handle files in /etc/ based on a 3-way checksum check.
find etc -type f | sort | while read -r file; do find etc ! -type d | sort | while read -r file; do
i=$((i + 1)) i=$((i + 1))
{ sum_new=$(sh256 "$file") { sum_new=$(sh256 "$file")
sum_sys=$(cd "$KISS_ROOT/"; sh256 "$file") sum_sys=$(sh256 "$KISS_ROOT/$file")
sum_old=$(awk "NR == $i" "$mak_dir/c"); } 2>/dev/null ||: sum_old=$(awk "NR == $i" "$mak_dir/c"); } 2>/dev/null ||:
log "$pkg_name" "Doing 3-way handshake for $file" log "$pkg_name" "Doing 3-way handshake for $file"